我无法在facet_grid中更改标签名称

时间:2019-04-03 12:18:04

标签: r ggplot2 label facet-grid

我试图更改facet_grid中的标签名称,并以百分比显示我的数据。但是,这不起作用。

aktivity <- ggplot(data=zaposlenost_prema_aktivnosti, 
                    mapping = aes(skrIndikator,Vrednost))

aktivity + geom_col(mapping=aes(x=skrIndikator, y=Vrednost, fill=skrIndikator)) +
        facet_grid(nPol~nVrTacka, labeller = "label_one") + 
        guides(fill=guide_legend(title="Description")) + 
        theme(axis.text.x = element_blank()) + 
        labs(x="Description", y="Value", title = "Employment by activity and gender", subtitle = "Statistically obtained by a poll", caption = "source: Republic Bureau for Statistics") 

1

0 个答案:

没有答案