Draw Plot with Confidence Intervals in R (2 Examples) | geom_errorbar [ggplot2] & plotCI [plotrix]

preview_player
Показать описание
R code of this video:

y = runif(10, 10, 20),
lower = runif(10, 0, 10),
upper = runif(10, 20, 30)), 2)

library("ggplot2")

ggplot(data, aes(x, y)) + # ggplot2 plot with confidence intervals
geom_point() +
geom_errorbar(aes(ymin = lower, ymax = upper))

library("plotrix") # Load plotrix

plotCI(x = data$x, # plotrix plot with confidence intervals
y = data$y,
li = data$lower,
ui = data$upper)

Follow me on Social Media:
Рекомендации по теме
Комментарии
Автор

Thank you for your instructive videos!

fatemehdehghani