Displaying 1 result from an estimated 1 matches for "xticklabel".
Did you mean:
xticklabels
2006 Aug 11
1
x tick labels - sparse?
...e tried is not working, eg, the
following does not work, although it seems intuitive to me that it
should work:
x <- seq(-100,1000,25)
y <- x * x
% find all the x values that are multiples of 100
tmp <- x / 100
tmp <- tmp %% 1
tmp <- tmp > 0
% set all other values to null strings
xtickLabels <- as.character( x )
xtickLabels[tmp] <- ""
plot(x, y, xlab=xtickLabels)
These commands look like this (the plot is not right):
> x <- seq(-100,1000,25)
> x
[1] -100 -75 -50 -25 0 25 50 75 100 125 150 175 200 225 250
[16] 275 300 325 350 375 40...