Plots sets of shapes.

Share:

Description

coo_listpanel plots a list of shapes if passed with a list of coordinates. Mainly used by panel.Coo functions. If used outside the latter, shapes must be "templated", see coo_template. If you want to reorder shapes according to a factor, use arrange.

Usage

1
2
3
coo_listpanel(coo.list, dim, byrow = TRUE, fromtop = TRUE, cols, borders,
  poly = TRUE, points = FALSE, points.pch = 3, points.cex = 0.2,
  points.col = "#333333", ...)

Arguments

coo.list

A list of coordinates

dim

A vector of the form (nb.row, nb.cols) to specify the panel display. If missing, shapes are arranged in a square.

byrow

logical. Whether to succesive shape by row or by col.

fromtop

logical. Whether to display shapes from the top of the plotting region.

cols

A vector of colors to fill shapes.

borders

A vector of colors to draw shape borders.

poly

logical whether to use polygon or lines to draw shapes. mainly for use for outlines and open outlines.

points

logical if poly is set to FALSE whether to add points

points.pch

if points is TRUE, a pch for these points

points.cex

if points is TRUE, a cex for these points

points.col

if points is TRUE, a col for these points

...

additional arguments to feed generic plot

Value

Returns (invisibly) a data.frame with position of shapes that can be used for other sophisticated plotting design.

See Also

Other plotting functions: Ntable, conf_ell, coo_arrows, coo_draw, coo_lolli, coo_plot, coo_ruban, ldk_chull, ldk_confell, ldk_contour, ldk_labels, ldk_links, plot_devsegments

Examples

1
coo_listpanel(bot$coo) # equivalent to panel(bot)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.