[R] Standard error lines within xyplot trellis plots

From: e-mail tom.pienkowski <tom.pienkowski_at_blueyonder.co.uk>
Date: Mon, 23 May 2011 11:36:18 +0100


Hi

I'm using the lattice function to plot catch data for two types of catch between two communities over time using the xyplot. I've used *"smooth"*when specifying
* type=c( )* . Here is a sample of my code below:

> xyplot(ns+ rc~wk|location, type=c("p", "smooth"), xlab="Week",
+ main="Native shrimp and Crayfish catches within Frenchman and Punches", + ylab="Native shrimp and Crayfish catch (Kg)")

'ns' and 'rc' refer to the two catch groups, 'wk' refers to the week and 'location' refers to the two communities in which data were collected.

This works fine, however I'm also trying to create lines to show the standard error on the same graph.

I've tried messing around with plot.CI etc with no success, any suggestions would be much appretiated!

Tom

        [[alternative HTML version deleted]]



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 Mon 23 May 2011 - 17:30:20 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Mon 23 May 2011 - 17:40:08 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