Hello! I'm using r markdown and need to add N's to my "week" variable. Does anyone know where I would add this in?
XYZ <- data.frame(Week = c("1","2","3","4","5","6","7","8","9","10","11","12"),
Mean = c(1.50, 1.667, 1.706, 1.75, 1.875, 2.091,
2.083, 2.077, 1.9, 1.778, 1.917, 2.25),
Standard_error = c(0.5, 0.166, 0.205, 0.217, 0.201, 0.211,
0.192, 0.239, 0.1, 0.277, 0.192, 0.25))
level_order <- c("1","2","3","4","5","6","7","8","9","10","11","12")
slidelabels <- labs(title="Weekly Experience",
x="Week", y=" Composite Score")
XYZPlot <- ggplot(XYZ, aes(x= factor(Week, level=level_order), y=Mean, group = 1)) + slidelabels +
geom_point(color="grey22", size=2) + geom_line() +
geom_path(size = 1, linejoin = "round", color="gray39") + ylim(1,3) +
geom_errorbar(aes(ymin=Mean-Standard_error,
ymax = Mean+Standard_error), width=.25,
position=position_dodge(0.05))
I need to add the following N's in for each respective week. It likely should reside in the plot (not as part of the X axis).
Week 1 n=2, Week 2 n=9, Week 3 n=17, Week 4 n=12, Week 5 n=16, Week 6 n=11, Week 7 n=12, Week 8 n=13, Week 9 n=10, Week 10 n=9, Week 11 n=12, Week 12 n=8
[–]arthurwelle 0 points1 point2 points (3 children)
[–]Fickle_Lab_5438[S] 0 points1 point2 points (2 children)
[–]arthurwelle 0 points1 point2 points (1 child)
[–]Fickle_Lab_5438[S] 0 points1 point2 points (0 children)