Displaying 1 result from an estimated 1 matches for "badplot".
Did you mean:
bandplot
2008 Jun 10
2
substitute() reading data instead of name
...deparsing outside the function definition, it seems to
work -- but then of
# course the user can't specify his own y-label
#seems to be related to my conditional modification of y itself -- if
#comment out
# that line (y+(y==0)*1e-50) everything works. That y->yy seems to fix
#it as well.
#
badplot<-function(x, y, ylab=deparse(substitute(y)),
xlab=deparse(substitute(x)), ...)
{
# un-comment either of the next two lines usually fixes the bug. why?
# cat(ylab,'\n')
# dreck<-ylab
# creating yy and using it instead of the input y fixes the bug. why?
#yy<-y
#yy<-yy+(yy==0)*1e...