Re: [R] Splitting a lattice stripplot across several pages

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Thu, 13 Nov 2008 17:28:20 -0800

On Thu, Nov 13, 2008 at 4:57 PM, Saptarshi Guha <saptarshi.guha_at_gmail.com> wrote:
> Hello,
> I have a stripplot with 200+ labels i.e i have network connections.
> The y-axis are the server port numbers and am graphing the number of
> packets in a connection. Roughly
> stripplot(totpacks~portnum,data=network)
> Due to the large number of server ports in my dataset, the y-axis
> labels overlap so I would like to split it across several panels(1
> panel per page) with about 25-50 per panel.
> Is there a way to do this?
> Regards
> Saptarshi

I would use my y-variable also as a conditioning variable, either using cut() or equal.count(). The basic idea is

x = y = 1:100
stripplot(y ~ x | cut(y, breaks = 10), scales = list(y = list(relation = "sliced", rot = 0)))

-Deepayan



R-help_at_r-project.org 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. Received on Fri 14 Nov 2008 - 01:49:44 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 14 Nov 2008 - 03:30:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive