Plots a conditionPlot, showing one, two or many predictors. The predictor setting in varVal
is drawn in magenta.
conditionPlot(
CVdata,
var,
varVal,
pointColor = "steelblue",
sim = NULL,
resetpar = TRUE,
plotrows = NULL
)
the dataset used for the fit
one more condition vars. Draws a parallel coordinate plot for more than two.
the current setting of the conditionvars, shown in magenta.
a color, vector of colors,or the name of variable to be used for coloring
If non-NULL should be a vector of similarity weights.
For use withing shiny app.
If non-NULL should be a vector of case indices
conditionPlot(mtcars, c("wt","hp"), c("wt"=3, "hp"=200), pointColor="am")
#> NULL
conditionPlot(mtcars, c("wt","hp"), mtcars[1,], pointColor="am")
#> NULL
#Calculate similarity using wt, hp observations from first case
sim <- similarityweight(mtcars[1, c("wt","hp")], mtcars[, c("wt","hp")], threshold=1)
# Marks points with black border with positive sim values. These are points within 1 (threshold) sd
#of pink cross.
conditionPlot(mtcars, c("wt","hp"), mtcars[1,], pointColor="am", sim=sim)
#> NULL
sim <- similarityweight(mtcars[1, ], mtcars, threshold=2)
conditionPlot(mtcars, names(mtcars), mtcars[1,], sim=sim)
#> NULL