[R] Splitting a lattice stripplot across several pages
Deepayan Sarkar
deepayan.sarkar at gmail.com
Fri Nov 14 02:28:20 CET 2008
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
More information about the R-help
mailing list