All Questions
Tagged with statistics ggplot2
295
questions
0
votes
0
answers
30
views
Correlation alternatives / How to go about testing this relationship? [migrated]
I have a large set of temperature data from upstream and downstream gauges. I am trying to find the influence of dam release on downstream temperatures. To do this, I am comparing correlation between ...
0
votes
1
answer
25
views
Why is my NMDS plot arch/horse shoe shaped?
I have a dataset which contains monthly sampled zooplankton data. It is always for the same sampling site so not spatial, but over 10 years. I wanted to use an NMDS plot to see if the zooplankton ...
2
votes
1
answer
30
views
Issue with displaying significance on multiple bar graphs
I am having issues displaying significance values for a t-test on a bar graph containing multiple metabolites. The code I have written is below:
my_comparisons <- list(c("0", "50&...
2
votes
1
answer
118
views
ggcoef_model not displaying all interaction comparisons
hunger <- sample(x = 0:1, size = 50, replace = TRUE)
treat <- sample(x = c("A1","A2"), prob = c(.75, .25), size = 50, replace = TRUE)
owner <- sample(x = c("Alice&...
0
votes
2
answers
50
views
How to get mean/average line of multiple points (with different x-axis values) using R (or Excel)? [closed]
I have two dataframes (fire2022_12 and fire2021_12) with the same three columns (variable, x, y). I have pasted a snippet from the top of these dataframes below. I can plot these two dataframes in the ...
0
votes
0
answers
24
views
How to implement CLD methodology in fractional designs with R?
I am working with a dataset consisting of factors (Temperature, Time, Ratio, and Pretreatment) each at three different levels, to study their effect on different responses (PRY, CRY, and PCR):
dput(...
0
votes
1
answer
100
views
How to save diagnostic plots from easystats to a file from a script
A month ago, I posted this question and I was able to solve it myself; however, after doing an update (easystats::easystats_update()), it no longer works. Therefore, my question remains the same: how ...
1
vote
1
answer
39
views
Difference between automated stat_summary statistics and standard error by hand
I'm plotting the mean and confidence intervals of a grouped variable using {ggplot2} and noticed that if I calculate the confidence intervals by hand or use stat_summary() I get slightly different ...
0
votes
0
answers
26
views
How to add p-values and comparison bars to a grouped violin ggplot?
I use following data
structure(list(Conditioning = c("PBS", "PBS", "PBS", "PBS", "PBS",
"PBS", "PBS", "PBS", "RSV&...
0
votes
1
answer
65
views
How to add legends in ggplot for a curve that derive from another df?
I need to show a series of data points and their mean over-impressed with standard deviation error bars, but I can't manage to impose the legend regarding the mean line, dots and error bars (so i ...
1
vote
3
answers
204
views
How to add summary statistics next to a legend in ggplot2?
I have the following simulated data
library(fitdistrplus)
values <- sample(20:50, 100, replace = TRUE)
df <- data.frame(values)
and I want to create a histogram as follow
create_histogram &...
0
votes
0
answers
50
views
Horizontally multiple legend position ggplot2
I want to represent three factors (at 5, 2, and 3 levels). The DES factor is represented in the x-axis, while the temp is in fill (different color) and water is pattern.
I get a figure, but I don´t ...
0
votes
1
answer
131
views
Different pattern and colors two-way ANOVA barplot
I´m plotting two factors and two variables in the same graph. However, I want that the factor time not only appears each bar with a different color, but also with a different pattern (using ggpattern)....
0
votes
1
answer
155
views
How do I easily plot data in R (line plot), that were adjusted for confounding variables?
since I now understand how to line plot data with multiple timepoints in R using ggpubr package, I want to plot data that has been adjusted for some known confounding variables in the data set.
What I ...
0
votes
1
answer
88
views
Age standarised mortality rate by age group and by year in r
I need help calculating a separate Age standardised mortality rate (Directly Standardised Rate) for males/females and by agegroup1 for 2011 to 2017 with 95%CI. I need to show this in line graphs as ...