[R] multiple graphs
David Winsemius
dwinsemius at comcast.net
Wed Sep 8 03:37:11 CEST 2010
On Sep 7, 2010, at 8:02 PM, moleps wrote:
> Dear all,
>
> I´m trying to create multiple graphs on the same page, but they are
> all stacked on top of each other.
>
> My code:
>
>
> par(mfrow=c(2,2))
> a<-list(levels(bar$h.r)[c(1,3,6)])
> print(a)
>
> lapply(a,function(x){
> a<-subset(bar,h.r==x)
> with(a, cdplot(wh~Age,ylab=x))
> #plot.new()
> })
>
> The plot.new command doesnt help...
>
> Any ideas??
?layout # assuming that the undescribed plotting function is base
graphics. Some plotting functions are hard coded and are able to
defeat the usual formatting options.
--
David Winsemius, MD
West Hartford, CT
More information about the R-help
mailing list