Hi Grzegorz,
this is great! it works for me.
Thank you,
Kai
On Wednesday, September 15, 2021, 11:09:20 PM PDT, Grzegorz Smoliński
wrote:
Hi,
of course you can. This should work:
ggplot(s8_plot, aes(fill=GTresult, y=cases, x=gc_label)) +
geom_bar(position="stack", stat="identity")) +
t
Hi,
of course you can. This should work:
ggplot(s8_plot, aes(fill=GTresult, y=cases, x=gc_label)) +
geom_bar(position="stack", stat="identity")) +
theme(axis.text.x = element_text(angle = 90, hjust = 1))
By "hjust" you make sure that labels do not overlap on plot.
Best regards,
Grzegorz
śr.,
Hi Grzegorz,
You are correct. it works now.
One more question: can I turn gc_label 90 degree in plot?
Thank you
Kai
On Wednesday, September 15, 2021, 10:54:52 AM PDT, Grzegorz Smoliński
wrote:
Hi,
Isn’t a bracket missing after gc_label?
So it should be:
> ggplot(s8_plot, aes(fill=GTr
Hi,
Isn’t a bracket missing after gc_label?
So it should be:
> ggplot(s8_plot, aes(fill=GTresult, y=cases, x=gc_label)) +
+ geom_bar(position="stack", stat="identity"))
Best,
Grzegorz
Od: Kai Yang via R-help
Wysłano: środa, 15 września 2021 19:50
Do: R-help Mailing List
Temat: [R] ggplot q
4 matches
Mail list logo