Learn R Programming

factorplot (version 1.2.3)

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)

Value

square

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

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

Author

Dave Armstrong

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.