transPlot | R Documentation |
Creates an x-y plot using arbitrary monotonic transforms for the axes.
transPlot(x, xtrans, xinv, xtargs = NULL, y, ytrans, yinv, ytargs = NULL, Plot = list(name = "", what = "points", type = "solid", width = "standard", symbol = "circle", filled = TRUE, size = 0.09, color = "black"), yaxis.range = c(NA, NA), xaxis.range = c(NA, NA), ylabels = "Auto", xlabels = "Auto", xtitle = deparse(substitute(x)), ytitle = deparse(substitute(y)), caption = "", margin = c(NA, NA, NA, NA))
x |
the x-axis data. |
xtrans |
the transformation function for the x-axis. |
xinv |
the inverse transformation for the x-axis. |
xtargs |
additional arguments to |
y |
the y-axis data. |
ytrans |
the transformation function for the y-axis. |
yinv |
the inverse transformation for the y-axis. |
ytargs |
additional arguments to |
Plot |
parameters defining the characteristics of the plot. See
|
yaxis.range |
set the range of the y-axis. |
xaxis.range |
set the range of the x-axis. |
ylabels |
set up y-axis labels. See |
xlabels |
set up x-axis labels. See |
xtitle |
the x-axis title (also called x-axis caption). |
ytitle |
the y-axis title (also called y-axis caption). |
caption |
the figure caption. |
margin |
set the plot area margins, in units of lines of text. Generally
all NA or the output from |
Information about the graph.
A call should be made to setPage
to set up the graphics
environment before calling transPlot
.
setPage
, transPretty
## Not run: X <- seq(.25, 9.75, by=.25) setGD() # The Box-Cox transform (power of 1.5) # The labels represent the original values; the line represents the transformed value transPlot(X, I, I, y=X, ytrans=boxCox, yinv=IboxCox, ytargs=list(lambda=1.5, GM=1), Plot=list(what="lines")) # For more details of transPlot see demo(topic="MeasurementRating", package="smwrGraphs") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.