mosaic_wrap: Wrap a data.frame into a mosaic_df, with options

Description Usage Arguments Details

Description

Given a list of shapes or directly an existing data.frame, calculates loci positions (row and col columns, for their ids) then decuces real coordinates (xc and yc columns).

Usage

1
2
3
mosaic_wrap(df, nr, nc)

mosaic_wrap_factor(df, f, nr, nc)

Arguments

df

data.frame with shp column as a list of shapes, and possibly other columns (eg a factor) or directly a list of shapes

nr

integer the number of rows for the mosaic plot

nc

interger the number of columns for the mosaic plot

f

factor for grouping structure

Details

If no nr (and/or nc) is passed, tries to return a squared mosaic plot.


vbonhomme/Momosaics documentation built on May 4, 2019, 10:56 a.m.