[R] using minor tickmarks with xYplot

Frank E Harrell Jr f.harrell at vanderbilt.edu
Mon Nov 28 20:57:53 CET 2005


Viet Nguyen wrote:
> Hi all,
> 
> I'm trying to make a plot with the function xYplot from package Hmisc in 
> R.  I would like to have minor tick-marks on the axis.  This should be a 
> common simple feature to have but I don't seem to find any discussion on 
> the topic.
> 
> Following is one of the things I tried and the error returned:
> 
> xYplot(y~x,data.frame(x=seq(1,10),y=runif(10)),minor.ticks=c(3.5,5.5))
> Error in panel(x = c(1, 2, 3, 4, 5, 6, 7, 8, 9, 10), y = 
> c(0.88172451662831,  :
>     object "gfun" not found

This is a bug in panel.xYplot.  Charles Thomas Dupont will fix it and 
give you the URL to our CVS area containing the new version, then you 
can do source('http://....') to override panel.xYplot until Thomas puts 
out a new version of Hmisc. -Frank

> 
> It's important that I use "xYplot" and not "plot" so function 
> minor.tick() is not useful.
> 
> Anything I can try?  Thanks in advance for your help.
> 
> vn
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 


-- 
Frank E Harrell Jr   Professor and Chair           School of Medicine
                      Department of Biostatistics   Vanderbilt University




More information about the R-help mailing list