filmov
tv
Draw Boxplot with Means in R (2 Examples) | Add Mean Values | points, text & stat_summary [ggplot2]

Показать описание
R code of this video:
group = LETTERS[1:4])
data_means <- aggregate(data$values, # Means by group
list(data$group),
mean)
boxplot(data$values ~ data$group) # Draw boxplot in Base R
points(x = 1:nrow(data_means), # Add points to plot
y = data_means$x,
col = "red",
pch = 16)
text(x = 1:nrow(data_means), # Add text to plot
y = data_means$x - 0.15,
labels = paste("Mean:", round(data_means$x, 1)),
col = "red")
library("ggplot2")
ggplot(data, aes(x = group, y = values)) + # Draw ggplot2 boxplot
geom_boxplot() +
stat_summary(fun = mean, geom = "point", col = "red") + # Add points to plot
stat_summary(fun = mean, geom = "text", col = "red", # Add text to plot
vjust = 1.5, aes(label = paste("Mean:", round(..y.., digits = 1))))
Follow me on Social Media:
group = LETTERS[1:4])
data_means <- aggregate(data$values, # Means by group
list(data$group),
mean)
boxplot(data$values ~ data$group) # Draw boxplot in Base R
points(x = 1:nrow(data_means), # Add points to plot
y = data_means$x,
col = "red",
pch = 16)
text(x = 1:nrow(data_means), # Add text to plot
y = data_means$x - 0.15,
labels = paste("Mean:", round(data_means$x, 1)),
col = "red")
library("ggplot2")
ggplot(data, aes(x = group, y = values)) + # Draw ggplot2 boxplot
geom_boxplot() +
stat_summary(fun = mean, geom = "point", col = "red") + # Add points to plot
stat_summary(fun = mean, geom = "text", col = "red", # Add text to plot
vjust = 1.5, aes(label = paste("Mean:", round(..y.., digits = 1))))
Follow me on Social Media:
Box and Whisker Plots Explained | Understanding Box and Whisker Plots (Box Plots) | Math with Mr. J
Box-Plot (Simply explained and create online)
Quick Box & Whisker Plot Tutorial #midnightmathtutor #boxandwhisker #mathtutorial
How To Make Box and Whisker Plots
Draw Boxplot with Means in R (2 Examples) | Add Mean Values | points, text & stat_summary [ggplo...
Boxplot [in 60 sec.] #shorts
How to Determine the Mean When Only Given the Box & Whisker Plots : Physics & Calculus Lesso...
How to read a Box and Whisker Plot
Understanding & Comparing Boxplots (Box and Whisker Plots)
Use Excel to Create a Box and Whiskers Boxplot and 5 Number Summary
Skewness - Right, Left & Symmetric Distribution - Mean, Median, & Mode With Boxplots - Stati...
Box and whisker plot | Descriptive statistics | Probability and Statistics | Khan Academy
Box Plots and Quartiles - GCSE Higher Maths
Box and Whisker Plots | MathHelp.com
How To Create A Box Plot In Excel (Including Outliers)
Minitab boxplots
Box Plot - 1 | How to draw Box Plot and Outlier | Data Mining | Statistics
Boxplots are Awesome!!!
Box plots in Stata®
How to read a box plot (a.k.a. a box-and-whisker plot) - Nick Desbarats
Quartiles Simplified
BOX AND WHISKER PLOTS EXPLAINED!
Interpreting box plots | Data and statistics | 6th grade | Khan Academy
Boxplots in Statistics | Statistics Tutorial | MarinStatsLectures
Комментарии