Hello
I wrote a simple program to modify a boxplot:
<<<
gdsbox <- function(indvar){
boxplot(indvar~gds3lev,
main = paste('Boxplot of', substitute(indvar), "for GDS groups"),
names = c('1', '3', '4, 5, 6'))
}
>>>
If I attach the dataframe gdsgraph, this works fine. However, I've been warned
against attach. When I tried to run this program using 'with', it did not work.
e.g.
with(gdsgraph, gdsbox(BReT3T5T))
produced an error that gds3level was not found
but if I try
with(gdsgraph, boxplot(BReT3T5T~gds3lev))
it works fine.
Similar problems occurred when I tried to use data =
What am I missing?
Thanks
Peter
Peter L. Flom, PhD
Brainscope, Inc.
212 263 7863 (MTW)
917 488 7176 (ThF)
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.