Learn R Programming

SparseFactorAnalysis (version 1.0)

plot.sfa: Plotting output from sparse factor analysis.

Description

Function for plotting coefficients from sparse factor analysis. Returns one of two types of plots: either a summary of estimated dimensionality or a scatterplot of two dimensions.

Usage

"plot"(x,...)

Arguments

x
Object from output of class sfa.
...
Additional items to pass to plot. Options below.

Details

The function produces either a summary of estimated dimensionality or a scatter plot of points between two dimensions. See options below.

type Either "dim" or "scatter". Whether to return a summary of dimensionality or scatterplot between two dimensions.

main, ylabel, xlabel Main title, y axis label, and x axis label.

dims.scatter Which two dimensions to plot against each other.

scatter.by Either row or col. Whether to produce scatterplot of two rows or of two columns.

topbottom Number of points to label at the extreme of each dimension. Only used for type="scatter".

References

In Song Kim, John Londregan, and Marc Ratkovic. 2015. "Voting, Speechmaking, and the Dimensions of Conflict in the US Senate." Working paper.

See Also

sfa

Examples

Run this code
##  See sfa() for example.

Run the code above in your browser using DataLab