Description Usage Arguments Value Author(s) Examples
Create a custom dotplot of one or more continuous variables against a categorical variable
1 2 3 4 5 6 7 | nmDotPlot(obj, factVar, contVar, bVars = NULL, iVar = "ID",
gVar = "NULL", title = NULL, xLabs = NULL, yLabs = NULL,
layout = NULL, maxPanels = numeric(0), addLegend = TRUE,
maxTLevels = Inf, maxFactPerPanel = Inf, problemNum = 1,
subProblems = 1, xAxisScaleRelations = c("same", "free", "sliced"),
yAxisScaleRelations = c("same", "free", "sliced"),
xAxisPlotStyle = c("data", "cont", "cat"), ...)
|
obj |
An object of class |
factVar |
Character variable representing the factor variable. |
contVar |
Character vector or comma separated string specifying continuous variables. |
bVars |
Trellis variables, specified as characters (or |
iVar |
Subject identifier variable (single string or NULL). |
gVar |
Grouping variable |
title |
Plot main title |
xLabs |
X-axis label |
yLabs |
Y-axis label |
layout |
Numeric vector giving the number of columns, rows and pages in a multipanel display. is overwritten by maxPanels. |
maxPanels |
Maximum number of panels that should appear on each page of a graph. |
addLegend |
Logical flag. Should legends be added? |
maxTLevels |
If a single numeric (or string), the maximum number of levels that a "by" variable can have before it is binned. If a character vector or a vector of length greater than one, the explicit breakpoints. |
maxFactPerPanel |
Max fact per panel. |
problemNum |
The problem required for a |
subProblems |
The sub problem of a run with simulations. |
xAxisScaleRelations |
X-axis scale relations when panels are displayed. One of |
yAxisScaleRelations |
Y-axis scale relations when panels are displayed. One of |
xAxisPlotStyle |
"data" or "cont" or "cat". |
... |
Additional parameters to |
Multitrellis class object containing the plot.
Mango Solutions
1 2 3 4 5 6 7 8 | ## Not run:
Theoph.df <- as.data.frame(Theoph)
nmDotPlot( Theoph.df, factVar = "Subject", contVar = "Dose" )
## End(Not run)
test_data <- data.frame(X = 1:20, Y = 1:20, Z = c(1:10, seq(from = 11, to = 12, length.out = 10)),
W = 20:1, G = rep(LETTERS[1:2], 10), B = rep(letters[1:2], each = 10))
nmDotPlot(test_data, factVar = "B", contVar = "X,W")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.