Displaying 1 result from an estimated 1 matches for "gdsgraph".
Did you mean:
dsgraph
2008 Aug 27
2
Simple programming problem with 'with' or 'data ='
...e 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~gds3l...