Three groups but only one individual per group ggplot(datapoids, aes(x = time, y = m1, group = group)) + So far I managed to get the three set of data on the graph but only for 1 individuals at each time, I can't get the mean +/- SD. With column 1 representing elapsing time, column 2 is the group, column 3-4-5 is the three individuals in each group.
I changed the way my dataframe is organized to be like this: > dput(head(datapoids, 60)) ggplot(data=datapoids, aes(x=time,y=ttt3_1)) +Īny idea how I can get with ggplot2 what I have with GraphPad?Īny kind of advice would be of a great help! This dataset represent variation over time (first column = elapsed time in days) of the weight of 9 individuals (3 individuals in 3 differents groups: ttt1, ttt2, ttt3).įirst, i am trying to plot this kind of graph (done with Graphpad Prism):īut so far, the only thing I managed to get is this (I can only plot one column at a time, where I want to plot the mean of 3 columns (ttt1_1, ttt1_2, ttt1_3 for example), and do it for my three groups (ttt1, ttt2, ttt3).