[R] plot with no default axis labels

Giovanni Azua bravegag at gmail.com
Fri May 14 21:02:04 CEST 2010


Hello Jim,

Very nice example! thank you!

Best regards,
Giovanni

On May 14, 2010, at 11:50 AM, Jim Lemon wrote:

> 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