[R] plot with no default axis labels

Jim Lemon jim at bitwrit.com.au
Fri May 14 11:50:33 CEST 2010


On 05/14/2010 07:31 PM, Giovanni Azua wrote:
> Hello,
>
> I could not find an easy way to have the plot function not display the default x and y-axis labels, I would like to customize it to show only points of interest ... I would like to:
>
> 1- call plot that show no x-axis and y-axis labels
> 2- call axis specifying the exact points of interest for the x and y-axis
>
> Maybe they can both be achieved in the plot function call but I can't find the right way to do it ...
>
Hi Giovanni
Let's get creative:

# making up data can be fun!
mydata<-sort(runif(20))
plot(mydata,main="A most creative plot",
  xlab="",ylab="",type="b",axes=FALSE)
box()
axis(1,at=c(1,7,9,14,17))
require(plotrix)
staxlab(2,at=c(0,0.3279614,0.4431966,0.729113,0.937461))

Jim



More information about the R-help mailing list