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 ... Thanks in advance, Best regards, Giovanni
Hello, I found the answer here: http://www.statmethods.net/advgraphs/axes.html basically plot(...,axes=FALSE,...) ## avoids default axis labels Best regards, Giovanni On May 14, 2010, at 11:31 AM, 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 ... > > Thanks in advance, > Best regards, > Giovanni
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