Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

squares

Auxiliary Function to Plot a Square


Description

An auxiliary function to plot squares, used by the plot.factorplot function

Usage

squares(ll, width = 1, col)

Arguments

ll

The (x,y) coordinate of the lower-left corder of the square

width

a scalar indicating how wide the squares should be

col

a color with which the square will be filled in

Details

This is a function called by plot.factorplot and not intended to be directly used by the user; however, it is possible that this could be of more general use as a utility. The function is simply a wrapper to polygon that obviates the need to specify all (x,y) coordinates for the polygon.

Value

square

A square is printed on the graph, but nothing else is returned

Author(s)

Dave Armstrong (UW-Milwaukee, Department of Political Science)


factorplot

Graphical Presentation of Simple Contrasts

v1.1-2
GPL (>= 2)
Authors
Dave Armstrong (Department of Political Science, UW-Milwaukee)
Initial release
2016-06-22

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.