Description Usage Arguments Details Value Examples
A list of 3-D P-P plots (or false color level plots when type = "contour"
)
for the inspection of the partial association analysis. Each plot is either 3-D P-P plot or level plot
from an empirical copula trained from the surrogate residuals of a pair of responses.
1 2 3 4 5 6 7 |
object |
A PAsso class of object. |
y1 |
A string to specify the first response for the 3D plot. |
y2 |
A string to specify the second response for the 3D plot. If either one of the
y1 or y2 is missing. The |
... |
Additional optional arguments. |
type |
A character string specifying the trace type (e.g. "surface3D", "contour"). "contour" creates a 2D contour plot between u and v. |
All the plots are based on surrogate residuals generated from "residuals"
function in sure
. Graphics are designed based on
PAsso and "plotly"
.
If response y1 or y2 is not specified, a list of "plotly"
objects includes
all pairs of responses will be returned (with name "response 1 v.s. response 2" etc.). If
responses y1 and y2 are specified, returns a 3D plot as "plotly"
object.
1 2 3 4 5 6 7 8 | # Did not run this to save time
# data("ANES2016")
# PAsso_3v <- PAsso(responses = c("PreVote.num", "PID", "selfLR"),
# adjustments = c("income.num", "age", "edu.year"),
# data = ANES2016)
# plot3D(PAsso_3v, y1="PID", y2="selfLR")
# plot3D(PAsso_3v, y1="PID", y2="selfLR", type = "contour")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.