addXY | R Documentation |
Adds points or lines to the current graph.
addXY(x, y, ...) ## S4 method for signature 'ANY,numeric' addXY(x, y, Plot = list(name = "", what = "lines", type = "solid", width = "standard", symbol = "circle", filled = TRUE, size = 0.09, color = "black"), current = list(yaxis.log = FALSE, yaxis.rev = FALSE, xaxis.log = FALSE), new.axis = "none", new.log = FALSE, new.rev = FALSE, new.range = c(NA, NA), new.labels = 7, new.title = "") ## S4 method for signature 'numeric,character' addXY(x, y, Plot = list(name = "", what = "points", type = "solid", width = "standard", symbol = "circle", filled = TRUE, size = 0.09, color = "black"), current = list(yaxis.log = FALSE, yaxis.rev = FALSE, xaxis.log = FALSE), jitter.y = FALSE)
x |
the x-axis data. Missing values are permitted, but result in breaks in the plotted data. |
y |
the y-axis data. Missing values are permitted, but result in breaks in the plotted data. |
... |
arguments for specific methods. |
Plot |
parameters defining the characteristics of the plot. See
|
current |
the current plot information. Typically, this would be the
output from one of the graph creation functions like |
new.axis |
character: indicating which new axis to set up. Must be either "right," "top," or "none," which indicates that the existing axes be used (default). |
new.log |
logical, if |
new.rev |
logical, if |
new.range |
set new-axis range. |
new.labels |
set up new-axis labels. |
new.title |
the new-axis title. |
jitter.y |
adjust |
Information about the graph.
Any valid x-axis data and numeric y.
Method to add to a dot plot; the right-axis arguments are not valid.
## Not run: set.seed(1) X <- rnorm(32) Y <- X + rnorm(32) Y2 <- X + rnorm(32, sd=0.5) setGD() AA.pl <- xyPlot(X, Y) addXY(X, Y2, Plot=list(what="points", color="brown")) # See for examples of addXY: vignette(topic="GraphAdditions", package="smwrGraphs") vignette(topic="GraphSetup", package="smwrGraphs") vignette(topic="ProbabilityPlots", package="smwrGraphs") demo(topic="DurationHydrograph", package="smwrGraphs") demo(topic="FlowDur-Measurements", package="smwrGraphs") demo(topic="MeasurementRating", package="smwrGraphs") demo(topic="RightAxisExample", package="smwrGraphs") demo(topic="TopAxisExample", package="smwrGraphs") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.