g2_chord: chord

View source: R/g2-mark.R

g2_chordR Documentation

chord

Description

chord

Usage

g2_chord(encode = NULL, ...)

Arguments

encode

encode

...

property: y / id / source / target / sourceWeight / targetWeight / sortBy / nodeWidthRatio / nodePaddingRatio

Details

data for chord:

df = data.frame(source=..., target=..., value=...)
g2(data=list(value=list(links=df)))

you need to pass the other property to g2_chord() to config the data field mapping if your data don't have the source target and value

See Also

Other mark: g2_area(), g2_bar(), g2_box(), g2_boxplot(), g2_cell(), g2_col(), g2_density(), g2_gauge(), g2_heatmap(), g2_hist(), g2_image(), g2_interval(), g2_line(), g2_lineX(), g2_lineY(), g2_link(), g2_liquid(), g2_pie(), g2_point(), g2_polygon(), g2_range(), g2_range_x(), g2_range_y(), g2_rect(), g2_shape(), g2_text(), g2_vector(), g2_wordCloud()


13kay/rg2 documentation built on June 25, 2024, 7:26 a.m.