plot_resphist | R Documentation |
Uses ggplot2
to produce alternative visualizations for results of the aldmck
or blackbox
functions.
plot_resphist(result, groupVar = NULL, facetVar = NULL, addStim = FALSE,
scaleDensity=TRUE, weights = c("all", "positive", "negative"),
xlab = NULL, main = NULL, ylab = NULL, whichRes = NULL,
dim = NULL, ...)
result |
An object of class |
groupVar |
Optional grouping variable that will paritition the observations to produce different density cuvres for |
facetVar |
An optional variable on which to facet the results |
addStim |
Logical indicating whether the stimulus locations should be added to the density plot. |
scaleDensity |
Logical indicating whether density should be scaled to represent different proportions of observations by group. |
weights |
Which observations should be used in plotting. The default is to use all available observations. The |
xlab |
Optional x-label for the plot. |
main |
Optional main title for the plot. |
ylab |
Optional y-label for the plot. |
whichRes |
For objects of class |
dim |
For object os class |
... |
Other arguments to be passed down, currently unimplemented. |
A ggplot
of the stimulus locations and density of ideal points.
aldmck
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.