37,832 questions
0
votes
1
answer
79
views
Build forest plot for estimate comparison of multiple models using ggplot2. How to add text of CI?
I am trying to create a forest plot to compare estimates of different models.
Tho goal is to plot all the estimates of the same predictor for the different models so they are comparable.
For this I ...
0
votes
0
answers
28
views
dynamic animation in paraview
I need to animate the movement of a cylinder in space. I have the x, y, and z coordinates as a function of time in a CSV file. Since it's very large, I can't create the animation manually. Is there a ...
0
votes
0
answers
80
views
Creating Estimation Plots in R with multiple variables
I have a mixed model that includes three different variables: Treatment, Stimulation, and DRG, as well as a random effect with DRG nested under a group ((1|Group/DRG)). I am looking to assess how each ...
1
vote
1
answer
72
views
How to create a stacked coefficients plot for multiple linear models in R?
I'm attempting to create a coefficient plot for multiple linear models using ggplot2 in R, but I'm facing an issue with overlapping points and error bars when displaying the estimates.
I've written a ...
0
votes
1
answer
79
views
stat_regline_equation() doesn't match stat_smooth() line
I'm getting an odd problem where I've attempted to plot a scatter graph and fit a quadratic regression line to it. I used stat_smooth() to make the line, and stat_regline_equation() to print the ...
3
votes
0
answers
98
views
How can I plot diagonals of matrix?
I want to plot all the diagonals of a matrix. In the matrix row 1 contains information of time 1, row 2 of time 2 etc etc. Each diagonal presents the evolution of the number of fishes in a cohort that ...
0
votes
0
answers
81
views
Plotting xts object in loop fails [duplicate]
I want to plot several time series (xts) in R in a loop. However, that does not work, I only get "empty" devices. So I wrote a little test:
library('xts')
testdata <- c(1:100)
testdata....
8
votes
2
answers
306
views
How to draw a double line in ggplot
How do I make the line in the graph above a double line like shown in below?
Some example code:
df <- data.frame(dose=c("D0.5", "D1", "D2"),
len=c(4.2,...
1
vote
1
answer
97
views
'facet_nested' displays incorrect labels and missing nest lines
I'm trying to create a nested facet plot in R using ggplot2 and ggh4x with the facet_nested function. I'm plotting a boxplot of a simulated dataset and want to facet the plot by x2 while grouping x1. ...
0
votes
1
answer
104
views
How to annotate with label in middle?
When I plot the following code with 3 subplots using matplotlib,
import numpy as np
import matplotlib.pyplot as plt
# ======================================
# Base ellipse parameters
# ==============...
0
votes
1
answer
54
views
Logistic regression, print several curves on the same graph
I'm working on a project, and I need to do a graph where there is two curves of logistic regression. I'd like to display the curve of the disease status (encoded by 0 and 1), along with the Age (...
2
votes
0
answers
99
views
PyQt6 QWebEngineView 3D Plot Fail To Render With Large Data
I'm working on an antenna 3D polar plot program which need to render real-time plot.
Things I'm using:
Python 3.11.9
PyQt6 6.9.1
PyQt6-WebEngine-Qt6 6.9.2
plotly 6.3.1
Issue:
The code can generate ...
1
vote
1
answer
67
views
Combining lines in a predicted probability plot without changing the regression model
I have a dataset with a binary outcome income and two continuous predictors, age, and education_num. I'm fitting a logistic regression model with a natural spline for age and an interaction with ...
0
votes
1
answer
80
views
Why do my labels and highlight points plot far from the data in tidyplots boxplot?
I'm using tidyplots to highlight and label extreme values in a boxplot, but the labels and points appear far from the actual data. Here's a minimal reproducible example.
pacman::p_load(dplyr, tidyr, ...
2
votes
2
answers
106
views
Jitter points next to boxplot [duplicate]
Is there a way to plot all points as a jitter next to (not underneath or on top) of a box plot in ggplot2? I can move the points to one side or change the width of jitter, but not both.
Edit: Using ...