[R] Creating mixed line and point graphs with xyplot
John Kane
jrkrideau at yahoo.ca
Mon Sep 7 18:42:54 CEST 2009
OOPS Skitts' law ( assuming I'm spelling it correctly.
--- On Sun, 9/6/09, David Winsemius <dwinsemius at comcast.net> wrote:
> From: David Winsemius <dwinsemius at comcast.net>
> Subject: Re: [R] Creating mixed line and point graphs with xyplot
> To: "John Kane" <jrkrideau at yahoo.ca>
> Cc: "Paul Sweeting" <mail at paulsweeting.co.uk>, "jim holtman" <jholtman at gmail.com>, r-help at r-project.org
> Received: Sunday, September 6, 2009, 3:24 PM
>
> On Sep 6, 2009, at 3:03 PM, John Kane wrote:
>
> > I think you have a couple of typos.
> >
> > Should it not be
> > par(new=True)
> > points(x,b)
>
> Probably not "True"
>
> >
> >
> >
> > --- On Sat, 9/5/09, jim holtman <jholtman at gmail.com>
> wrote:
> >
> >> From: jim holtman <jholtman at gmail.com>
> >> Subject: Re: [R] Creating mixed line and point
> graphs with xyplot
> >> To: "Paul Sweeting" <mail at paulsweeting.co.uk>
> >> Cc: r-help at r-project.org
> >> Received: Saturday, September 5, 2009, 6:37 PM
> >> I would use the base plot routine
> >>
> >> plot(x,c, type='l', ylim=range(a,c))
> >> points(x,a)
> >> park(new=TRUE)
> >> plot(x,d,type='l', ylim=range(b,d),
> axes=FALSE,ylab='',
> >> xlab='')
> >> pints(x,b)
> >> axis(4)
> >>
> >> On Fri, Sep 4, 2009 at 11:28 AM, Paul
> Sweeting<mail at paulsweeting.co.uk
>
> >> >
> >> wrote:
> >>> Hi
> >>>
> >>> Well, I think the title says it all!
> I've looked
> >> through the documentation but I can't find a way
> of doing
> >> this. The situation is that I have 4 series,
> say a, b, c
> >> and d. Series a and c are plotted on the lh
> y axis, series
> >> b and d are plotted on the rh (secondary) y
> axis. I've
> >> worked out how to do this.
> >>>
> >>> However, I need to plot series a and b a
> points
> >> (symbols only, no line), whislt c and d need
> plotting as
> >> lines (with no symbols). What is the easiest
> way to do
> >> this in xyplot? Or should I be using
> something else?
> >>>
> >>> Thanks!
> >>>
> >>> Paul
> >>>
> >>>
> ______________________________________________
> >>> 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.
> >>>
> >>
> >>
> >>
> >> --
> >> Jim Holtman
> >> Cincinnati, OH
> >> +1 513 646 9390
> >>
> >> What is the problem that you are trying to solve?
> >>
> >> ______________________________________________
> >> 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.
> >>
> >
> >
> >
> >
> __________________________________________________________________
> > Looking for the perfect gift? Give the gift of
> Flickr!
> >
> > http://www.flickr.com/gift/
> >
> > ______________________________________________
> > 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.
>
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
>
>
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
More information about the R-help
mailing list