plot.bayesunfold: Plotting method for Bayesian Multidimensional Unfolding

View source: R/asmcjr.r

plot.bayesunfoldR Documentation

Plotting method for Bayesian Multidimensional Unfolding

Description

Produces a plot of the stimulus and individual locations.

Usage

## S3 method for class 'bayesunfold'
plot(x, ...,  which.res =c("rotated", "unrotated"), 
  labels=c("color", "text"),  plot.stimuli = TRUE, plot.individuals=FALSE, 
  selected.stim=NULL, selected.individuals = NULL, individual.id=NULL)

Arguments

x

An object of class bayesunfold.

...

Other arguments to be passed down, currently not implemented.

which.res

Which set of results should be plotted - raw (unrotated) or those that were procrustes rotated into similarity with the L-BFGS solution (rotated).

labels

Should labels be identified by text or color.

plot.stimuli

Logical indicating whether stimuli should be plotted.

plot.individuals

Logical indicating whether individuals should be plotted.

selected.stim

Names of stimuli to be included in plot, defaults to all.

selected.individuals

Row numbers of stimuli to be plotted, defaults to all.

individual.id

Additional variable that will be used to define groups of plotted individual stimuli.

Value

A ggplot or a tibble if plot.stimuli and plot.individuals are both set to FALSE.


davidaarmstrong/asmcjr documentation built on June 29, 2024, 12:07 p.m.