PlotAxis.RdFunction to plot a transformed axis. Available TYPEs are ID, POWER_Z, LOG10, LOGIT.
PlotAxis(x, AXIS = 1, SCALE = "ID", LIM = NULL, NPRETTY = 8, UNIT = NULL, ...)
| x | is the untransformed metric variable to be plotted |
|---|---|
| AXIS | =1 Choose which axis 1=x-axis, 2=y-axis |
| SCALE | ="ID" chooses between ID, POWER_Z, LOG10, LOGIT |
| LIM | =NULL plot interval for axis i.e. xlim or ylim |
| NPRETTY | = 8 influences approximate number of labels when using ID or POWER_Z (cf. base pretty) |
| UNIT | =NULL if SCALE ="ID" AND diff(LIM) divisable by UNIT plot interval will have UNIT based ticks |
| ... | further parameters for scale transformations can be provided via ... Z specifies the power to use with POWER_Z when using POWER_Z PERCENT =F Use percent instead of proportions in LOGIT when using LOGIT |
plots the chosen axis in the currently open plot.
if (FALSE) { x<-rnorm(300,10,3) hist(x,xaxt="n") PlotAxis(x,AXIS=1,SCALE="ID",NPRETTY=12) hist(x,xaxt="n") PlotAxis(x,AXIS=1,SCALE="ID",NPRETTY=3) x<-rnorm(300,10,6)^(3/2) hist(x^(2/3),xaxt="n") PlotAxis(x,AXIS=1,SCALE="POWER_Z", Z=2/3) x<-exp(rnorm(700,1,1)) hist(log10(x),xaxt="n") PlotAxis(x,AXIS=1,SCALE="LOG",LIM=NULL,NPRETTY=2) x<-rbeta(300,12,1) hist(T_Logit(x),xaxt="n",nclass=40) PlotAxis(x,AXIS=1,SCALE="LOGIT",NPRETTY=8) x<-rbeta(300,3,1)*100 hist(T_Logit(x,PERCENT=T),xaxt="n",nclass=40) PlotAxis(x,AXIS=1,SCALE="LOGIT",NPRETTY=8,PERCENT=T) }