tm_chart | R Documentation |
Legend charts are small charts that are added to the map, usually in addition to legends.
tm_chart_histogram(
breaks,
plot.axis.x,
plot.axis.y,
extra.ggplot2,
position,
group_id,
width,
height,
stack,
z,
...
)
tm_chart_bar(
plot.axis.x,
plot.axis.y,
extra.ggplot2,
position,
group_id,
width,
height,
stack,
z,
...
)
tm_chart_donut(position, group_id, width, height, stack, z, ...)
tm_chart_violin(position, group_id, width, height, stack, z, ...)
tm_chart_box(position, group_id, width, height, stack, z, ...)
tm_chart_none()
tm_chart_heatmap(position, group_id, width, height, stack, z, ...)
breaks |
The breaks of the bins (for histograms) |
plot.axis.x , plot.axis.y |
Should the x axis and y axis be plot? |
extra.ggplot2 |
Extra ggplot2 code |
position |
The position specification of the component: an object created with |
group_id |
Component group id name. All components (e.g. legends, titles, etc) with the same |
width , height |
width and height of the component. |
stack |
stack with other map components, either |
z |
z index, e.g. the place of the component relative to the other componets |
... |
passed on to |
Note that these charts are different from charts drawn inside the map. Those are called glyphs (to be implemented).
tm_shape(World) +
tm_polygons("HPI",
fill.scale = tm_scale_intervals(),
fill.chart = tm_chart_histogram())
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.