Re: [R] how to place a rug on only the x-axis in a scatterplot with lattice

2019-11-05 Thread Bert Gunter
For the record, I left out a key word in my prior "explanation", which I have corrected below. I also needed to clarify something, as my original wording is confusing. Sorry about that. Bert On Tue, Nov 5, 2019 at 11:09 AM Bert Gunter wrote: > Lattice functions pass down their **unrecognized**

Re: [R] how to place a rug on only the x-axis in a scatterplot with lattice

2019-11-05 Thread Bert Gunter
Here's how you pass an argument down to the panel function. foo <- runif(30,0,5) y <- rnorm(30, mean = 10) xyplot(y~foo, panel = function(x,...) { panel.xyplot(x,..., col = "red") panel.rug(x, col="black") }) Cheers, Bert Bert Gunter "The trouble with having a