Skip to content
Prev 214940 / 398500 Next

Basic graphs: something like groups, but where each plot has independent axis?

Ben Bimber wrote:
You can do this in ggplot2 using facet_wrap( ~ id, scales = "free_x" ):

  colonyPlot <- qplot( date, weight, data = data,
    xlab = "Date",
    ylab = "Weight" ) +
    facet_wrap( ~ id, scales = "free_x" ) +
    theme_bw()

  print( colonyPlot )


Not sure about hot to do it using xyplot though.  The following website may
help for ggplot2:

  http://had.co.nz/ggplot2/facet_wrap.html


Good luck!

-Charlie

-----
Charlie Sharpsteen
Undergraduate-- Environmental Resources Engineering
Humboldt State University