Re: [R] lattice panel.linejoin type question

From: Deepayan Sarkar <deepayan.sarkar_at_gmail.com>
Date: Tue 02 Jan 2007 - 18:09:16 GMT

On 1/2/07, Walker, Sam <s-walker@ti.com> wrote:
> Hello R Users!
>
> I'm trying to use the panel.linejoin function to draw points and lines
> (type="o") but it wouldn't do it. Modifying the panel.linejoin function
> as such (adding type argument to the panel.lines call).
>
> *original*
> panel.lines(vals[xx], yy, col = col.line, lty = lty,
> lwd = lwd, ...)
> *modified
> panel.lines(vals[xx], yy, col = col.line, lty = lty,
> lwd = lwd, type, ...)

I think I'll just remove 'type' from the argument list of 'panel.linejoin', unless I see any problems with that change.

Deepayan

>
>
> Then passing the type="o" in the panel.linejoin call as such works.
> xyplot(
> ...
> ,panel.groups=function(x,y,subscripts,...) {
> panel.linejoin(x,y,fun=mean,type="o",...)
> }
> )
>
> However, if I don't add the "type" in the panel.lines call, I get a
> "formal argument "type" matched by multiple actual arguments" Error.
>
> It seems like overkill to redefine panel.lines, is there a simpler way?
>
>
> R 2.4.1 Windows XP
> Lattice 0.14-16
>
> Best Regards,
> Sam
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



R-help@stat.math.ethz.ch 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 Wed Jan 03 09:50:00 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 02 Jan 2007 - 23:30:29 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.