我试图更改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")