Hi:
Here are a few options for making this type of plot:
# ggplot2
library(ggplot2)
ggplot(dd, aes(x = Age.at.Sample.Collection, y = MCP1, group =
Subject.ID, colour = Subject.ID,
shape = Group)) +
geom_point(size = 2.5) + geom_line(size = 0.6) + labs(x = 'Age')
ggplot(dd,
here is the data set, yes i am doing spagghetti plots for each Subject for
MCP1 with respect to the Age.at.Sample.Collection, with a final of all the
controls and all the cases
Subject.ID sample Group Age.at.Sample.CollectionMCP1
19 00173-0 3455 control11.767282 2
You may try "xyplot"
2011/5/20 1Rnwb
> Hello gurus,
>
> I have a dataframe containing two groups viz., 'control' and 'case', each
> of
> these groups contains longitudinal data for 100 subjects. I have to plot
> all
> these subjects on a single chart and then put a regression line for each of
>
Hi:
Could you post a small, reproducible data set that illustrates what
you want to do? It sounds like you're creating 'spaghetti plots',
which can be done with a minimal amount of pain in ggplot2.
Dennis
On Thu, May 19, 2011 at 11:29 AM, 1Rnwb wrote:
> Hello gurus,
>
> I have a dataframe conta
Hello gurus,
I have a dataframe containing two groups viz., 'control' and 'case', each of
these groups contains longitudinal data for 100 subjects. I have to plot all
these subjects on a single chart and then put a regression line for each of
the group for all the subjects. I have written a functi
5 matches
Mail list logo