> library(sciplot)
> bargraph.CI(peptide, surface, group=adjunct,data = y)
Error in eval(substitute(subset), envir = data) : object "y" not found
# groan, ... why can't people offer a workable example?
> data(ToothGrowth)
# se as default
> bargraph.CI(x.factor = dose, response = len, data = ToothGrowth)
# create desired function
> bargraph.CI(x.factor = dose, response = len, data = ToothGrowth,
ci.fun= function(x) c(mean(x)-sd(x), mean(x) + sd(x)) )
QED
On Mar 21, 2009, at 4:09 PM, herwig wrote:
Sorry about forgetting that.
Package "sciplot"
Simple example code:
This code plots the standard error on the bars; I would like to
replace that
by the standard deviation
bargraph.CI(peptide, surface, group=adjunct,data = y)
David Winsemius wrote:
Package name?
Example code?
--
On Mar 21, 2009, at 4:22 AM, herwig wrote:
Hi there,
I am a beginner.
I would like to change the error bars in the bargraph.CI function
from the
default (se) to (sd). The help file says
ci.fun= function(x) c(fun(x)-se(x), fun(x)+se(x))
Is there a simple way of telling the function what (x) precisely is
- I
already define in in the of the bargraph.CI function and assume
that is
should be able to use that information.
cheers,
Herwig
--
David Winsemius, MD
Heritage Laboratories
West Hartford, CT
______________________________________________
R-help@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.
--
View this message in context:
http://www.nabble.com/bargraph.CI-change-se-for-sd-tp22633770p22639845.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
R-help@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
______________________________________________
R-help@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.