| plot_treemap | R Documentation |
Create treemap plot
plot_treemap(data, area, fill, subgroup, title, subtitle, data_source)
data |
data frame |
area |
numeric data to be plotting |
fill |
categorical data |
subgroup |
categorical data (optional) |
title |
character title |
subtitle |
character subtitle |
data_source |
character data source |
ggplot objek
## Not run:
library(ggplot2)
library(dataplot)
df <- G20
plot_treemap(data = df,
area = "gdp_mil_usd",
fill = "region",
subgroup = "country",
title = "Lorem Ipsum is simply dummy text",
subtitle = "Contrary to popular belief, Lorem Ipsum is not simply random text",
data_source = "www.kedata.online"
)
plot_treemap(data = df,
area = "gdp_mil_usd",
fill = "region",
subgroup = "country",
title = "Lorem Ipsum is simply dummy text",
subtitle = "Contrary to popular belief, Lorem Ipsum is not simply random text",
data_source = "www.kedata.online"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.