Closed zh-Bian closed 3 years ago
library(ggplot2)
library(hrbrthemes)
library(treemapify)
ggplot(G20) +
geom_treemap(
aes(
area = gdp_mil_usd,
fill = region
),
start = "bottomright",
show.legend = FALSE,
radius = grid::unit(2, "mm"),
color = "white",
size = 5
) +
theme_ipsum_gs(grid="")
?
I see there is a parameter 'radius', however it didn't work. I need to change the square to rounded corners.How could I do this? Thank you. ggplot(data=data,mapping = aes(area=Freq,fill=Var1)) + geom_treemap(start='bottomright',show.legend=F,radius = grid::unit(2, "mm")) @hrbrmstr @wilkox @stijnvanhoey