How about 4 plots of 9 each. You can change the 'cut' for other
distributions of your IDs.
pData <- data.frame(id=sample(1:36,1000,T), data=rnorm(1000)) # sample data
partData <- split(pData, cut(pData$id, 4)) # split into 4 groups
boxplot(data ~ id, pData) # original plot
lapply(partData, function(x) boxplot(data ~ id, x)) # 4 plots
On 1/8/07, antoniababe@yahoo.se <antoniababe@yahoo.se>
wrote:>
> Dear R-users,
>
> I have a data frame containing 2 colums: column 1 is
> the patient numbers (totally 36 patients), column 2 is
> patient's response values (each patient has 100
> response values). If I produce a boxplot for each
> patient on the same graph in order to compare them
> against each other then the boxplots are very small.
>
> How can I instead of creating one graph containing 36
> boxplots, create four different graphs where three of
> them have 10 boxplots each representing data of 10
> patients and the fourth graph has boxplots of
> remaining patients ?
>
> Thanks alot for any suggestion,
> Greetings,
> Antonia
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
--
Jim Holtman
Cincinnati, OH
+1 513 646 9390
What is the problem you are trying to solve?
[[alternative HTML version deleted]]