| g2_range_x | R Documentation | 
rangeX
g2_range_x(data, ...)
| 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 | 
| ... | 
data for single range: c(start_x1, end_x1)
data for multiple ranges: list(c(start_x1, end_x1), c(start_X2, end_x2), ...)
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()
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))))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.