[R] xyplot remove ticks from top and right

David Winsemius dwinsemius at comcast.net
Fri Sep 16 05:32:42 CEST 2011


On Sep 15, 2011, at 10:44 PM, Alex Olssen wrote:

> Dear R-help,
>
> I am drawing a graph using xyplot.
>
> The axis labels only appear on the left and bottom axes - I used the  
> option
> xyplot(scale = list(alternating = 1))

Just read the help page:

?xyplot

There is a tck argument to scales that you could offer as c(1,0) to  
make the top left ticks go away.

>
> However while the labels no longer appear on the top and right border
> of the graph the ticks do!  Any help would be greatly appreciated.
>
> Kind regards,
> Alex Olssen
>
> ______________________________________________
> R-help at r-project.org mailing list
> 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.

David Winsemius, MD
West Hartford, CT



More information about the R-help mailing list