plotChord: plotScatterPie

Description Usage Arguments Details Examples

View source: R/plotChord.R

Description

if 'Summation of cell padding on y-direction are larger than the height of the cells' appears, just enlarge the xlim or ylim accordingly

Usage

1
2
3
4
5
6
7
8
9
plotChord(
  data,
  t = FALSE,
  ifsep = TRUE,
  trans = 0.3,
  highlight = NULL,
  xlim = c(-1, 1),
  ylim = c(-1, 1)
)

Arguments

data

a dataframe showing different management intersections. See the data frame in the example

t

is transpose the dataframe, by default, lines flow from row to column, if t == TRUE, lines will flow from columns to rows. Once transposed,

ifsep

if separate row and col categories in the chart, default is TRUE

trans

transparency of the chart's lines, default is 0.3

highlight

a string or string array of highlighted items, MUST be selected from first column (which represents names) or colnames. if highlight has more than 2 items, they should belong to same category, either colnames, or names. One name and one column name is not allowed.

xlim

x limit of the chart, default is c(-1, 1)

ylim

y limte of the chart, default is c(-1, 1)

Details

plot scatter pie chart for multidimension analysis, such as waternomics. This plot can provide information about water use/wastewater of each provinces and GDP mix of each provinces, see examples.

Examples

1
2
3
4
5
6
7
## Not run: 
plotChord(cm)
plotChord(cm, t = T)
plotChord(cm, highlight = 'MEP')
plotChord(cm, highlight = 'Investment')

## End(Not run)

gfer documentation built on Feb. 6, 2022, 5:06 p.m.