g2_range_x: rangeX

View source: R/g2-mark.R

g2_range_xR Documentation

rangeX

Description

rangeX

Usage

g2_range_x(data, ...)

Arguments

data

to draw a single range, use a vector of length-2,to draw n ranges, use a vector of length-n, where each element of the vector is a vector of length-2

...

Details

data for single range: c(start_x1, end_x1)

data for multiple ranges: list(c(start_x1, end_x1), c(start_X2, end_x2), ...)

See Also

Other mark: g2_area(), g2_bar(), g2_box(), g2_boxplot(), g2_cell(), g2_chord(), 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_y(), g2_rect(), g2_shape(), g2_text(), g2_vector(), g2_wordCloud()

Examples

g2_range_x(c(67, 120))
g2_range_x(c(js('new Date("2010")'),js('new Date("2020")')))
g2_range_x(list(c(9, 18), c(24, 32), c(67,100)))

g2_view(url, children = list(g2_point(encode('height', 'weight', color='gender')),g2_range_x(c(160,170))))



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