wilkox / treemapify

🌳 Draw treemaps in ggplot2
http://wilkox.org/treemapify
213 stars 18 forks source link

Ignoring unknown parameters: radius #42

Closed zh-Bian closed 3 years ago

zh-Bian commented 3 years ago

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

hrbrmstr commented 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="")

image

?

wilkox commented 3 years ago

@zh-Bian if you're still having this problem, could you please post a reprex including some sample data that shows the error? Thanks.