plot_blackbox | R Documentation |
Uses ggplot2
to produce alternative visualizations for results of the blackbox
function. Makes a scatterplot of respondents on the estimated latent dimensions.
plot_blackbox(result, dims, whichRes = NULL, groupVar = NULL, issueVector = NULL,
data = NULL, missing = NULL, rug = FALSE, xlab = NULL, main = NULL,
ylab = NULL, nudgeX = NULL, nudgeY = NULL, ...)
result |
An object of class |
dims |
A numeric vector of two values giving the dimension numbers to be plotted. |
whichRes |
Identifies the dimensionality of the result to be used. For example, if you set |
groupVar |
Optional grouping variable that will paritition the observations to produce different density cuvres for |
issueVector |
Either column names or numbers of issues whose normal vectors should be plotted in the space along with respondents. |
data |
Data frame used to estimate the solution. Only required if you specify something other than |
missing |
A vector of values that will be recoded to missing in the analysis. |
rug |
Logical indicating whether marginal rug-plots should be included. |
xlab |
Optional x-label for the plot. |
main |
Optional main title for the plot. |
ylab |
Optional y-label for the plot. |
nudgeX , nudgeY |
Factor by which text labels will be nudged in the x- and y- dimensions. |
... |
Other arguments to be passed down, currently unimplemented. |
A ggplot
of the stimulus locations and density of ideal points.
blackbox
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.