I have a data frame mdata which has the columns variable and value that I am plotting on a BoxPlot in R. I am plotting log10(value) on the Y-axis & variables on the X-axis. I want to change the labels on the Y-axis such that it shows the original values and not the log10(value).
>mdata
ID variable value
SJ5444_MAXGT coding 17455
SJ5426_MAXGT coding 17961
HR1383_MAXGT coding 17579
HR5522_MAXGT coding 17797
CH30041_MAXGT coding 20099
SJ5438_MAXGT coding 17467
I want the Y-axis range to go from min(mdata$value) to max(mdata$value) with an interval of 10000. But I am unable to do so.
The following is my code:
boxplot(log10(as.numeric(value))~variable,data=mdata,yaxt="n",border="red",main="Boxplot: Seattle Seq Annotation")
axis(side=2,labels=seq(min(mdata$value),max(mdata$value),10000),cex.axis=0.65,tck=-0.02,at=seq(min(mdata$value),max(mdata$value),by=10000))
I have tried to figure out what is the problem here but its not obvious. Any help would be appreciated.


as.matrixout, too. - IRTFMat=. The way to have seen that quickly was just to useaxis(2)- IRTFM