Plot group-condition design-score centroids with one latent variable on each axis. Labels identify the design cells, while colors or shapes can encode grouping factors.
Arguments
- x
A
pls_resultobject.- lv
Integer vector of two latent variables.
- condition_key
Optional condition metadata.
- formula
Optional one-sided formula controlling aggregation and faceting. Variables before
|identify plotted points; variables after|identify facets. Variables omitted from the formula are averaged over. For example,~ group + condition | tasklabels group-condition centroids in task facets, while~ group | taskcollapses over condition labels inside each task.- label
Character vector of columns to paste into point labels. Defaults to
groupandconditionwhen a group column is available.- label_sep
Separator used when
labelhas multiple columns.- color
Optional column name for point color. Defaults to
groupwhen available.- shape
Optional column name for point shape.
- facet
Optional column name or character vector used for faceting. Defaults to the variables after
|informula.- show_origin
Logical; draw zero reference lines.
- show_segments
Logical; draw segments from the origin to each centroid.
- show_se
Logical; draw standard-error bars in both LV dimensions.
- aspect
Aspect handling.
"fixed"uses the same numeric scale for both axes;"free"lets the panel fill the available device.- padding
Fractional padding added around the joint x/y range. This keeps labels visible when points sit near the edge of the score space.
- title
Optional plot title.
- block
Optional score block to keep for multiblock results.