Hi all,
I'm trying to create a box plot in ggplot. I wish to plot growth scores ("above" or "below") from 3 factors at each of 2 times with a single continuous y variable (in other words, the distribution of "neo" across growth z scores at each of two times (6 and 15 wks). . I reshaped some data from wide to tall but can't figure out how to do what I'm saying...
ggplot(subset(g, (time==6 | time==15))) +
geom_boxplot(aes(x=interaction(waz,haz,whz), y=neo)) +
scale_y_continuous("NEO (nmol/L") +
scale_x_discrete("Growth Status by Age")
...but I know that this method is plotting an interaction, and I'm not sure if that's the correct way to go about this. Attached is my data; there are two y variables ("neo" and "mpo"). I'm terrible at R, and I'm having a rough time trying to figure out exactly how the syntax works.
Thanks much!