On Tue, 11 Sep 2018, Bert Gunter wrote:> Not when I run your code with the tck specification added. Show us > your xyplot invocation. It should be > scales = list(tck = c(1,0), x= etc.)Bert, Command: rain.all.sum <- xyplot(Sum ~ Month, data=agg.all, col = 'black', type = 'h', main = 'Monthly Total Precipitation\n2005-2018', xlab = 'Year and Month', ylab = 'Precipitation (in)', scales = list(x = list(tck = c(1, 0), at = seq(1,162,by=6), cex = 0.7, rot = 90))) rain.all.sum.pdf attached. Regards, Rich -------------- next part -------------- A non-text attachment was scrubbed... Name: rain.all.sum.pdf Type: application/pdf Size: 6640 bytes Desc: URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20180911/bc738398/attachment-0002.pdf>
As I thought, you did not do what I told you to. Look *carefully* at the two to see your error. -- Bert On Tue, Sep 11, 2018 at 5:01 PM Rich Shepard <rshepard at appl-ecosys.com> wrote:> > On Tue, 11 Sep 2018, Bert Gunter wrote: > > > Not when I run your code with the tck specification added. Show us > > your xyplot invocation. It should be > > scales = list(tck = c(1,0), x= etc.) > > Bert, > > Command: > > rain.all.sum <- xyplot(Sum ~ Month, data=agg.all, col = 'black', type = 'h', > main = 'Monthly Total Precipitation\n2005-2018', > xlab = 'Year and Month', ylab = 'Precipitation (in)', > scales = list(x = list(tck = c(1, 0), at = seq(1,162,by=6), > cex = 0.7, rot = 90))) > > rain.all.sum.pdf attached. > > Regards, > > Rich > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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.
On Tue, 11 Sep 2018, Bert Gunter wrote:> As I thought, you did not do what I told you to. > Look *carefully* at the two to see your error.Bert, You're correct, of course. After moving the tck parameter in front of the x list the right-side ticks are gone. Unfortunately, so are the data: the panel is empty. Corrected command: rain.all.sum <- xyplot(Sum ~ Month, data=agg.all, col = 'black', type = 'p, h', main = 'Monthly Total Precipitation\n2005-2018', xlab = 'Year and Month', ylab = 'Precipitation (in)', scales = list(tck = c(1,0), x = list(at = seq(1,162,by=6), cex = 0.7, rot = 90))) Tomorrow I'll work on why the panel display disappeared along with the right axes tick marks. Parentheses all match according to emacs. Thanks, Rich