[R] scale breaks

Jim Lemon jim at bitwrit.com.au
Fri Aug 30 12:17:30 CEST 2013


On 08/30/2013 07:57 PM, Shane Carey wrote:
> This is what I put in:
> gap.boxplot(DATA$Conductivity~factor(DATA$UnitName_1),ylim=c(LOWER_Y_Conductivity,UPPER_Y_Conductivity_int),gap=gap_Conductivity,
>              col=colours,outwex=one,whisklty =
> "solid",whisklwd=lwth,outcol= "black", outpch=dtsym,  outcex=dtsize,
>              range=1.5,xlab="",ylab="")
>
> My aim is to not show the labels at the tick marks as I will add them to
> the plot afterwards
>
Ah, not the axis labels but the tick labels. This is something I had not 
put into the function. You can edit the gap.boxplot function to do this 
by commenting out line 53:

# axis(1,labels=bxpt$names,at=1:nboxes)

saving the function (call it gap.boxplot2.R) and "sourcing" the edited 
function:

library(plotrix)
source("gap.boxplot2.R")
gap.boxplot(...)

Remember that you have to load plotrix, _then_ source the new function.
Jim



More information about the R-help mailing list