plot.sfa: Plotting output from sparse factor analysis.

Description Usage Arguments Details Author(s) References See Also Examples

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

1
2
## S3 method for class 'sfa'
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".

Author(s)

Marc Ratkovic

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

1
##  See sfa() for example.

Example output

Loading required package: directlabels
Loading required package: proto
Loading required package: ggplot2

SparseFactorAnalysis documentation built on May 2, 2019, 6 a.m.