ggplot2 bar plot
1
0
Entering edit mode
Jitendra ▴ 10
@nabiyogesh-11718
Last seen 4 months ago
United Kingdom

Hi,

Could anyone please help me how to put one more categorical variable in ggplot2 command while using facet_wrap. Like I also have one more variable geographic_region along with Compartment and Season.

ggplot(Afribiota_phylum, aes(x = Sample, y = Abundance, fill = Phylum)) +
facet_wrap(~Compartment + Season, scales = "free_x", ncol = 6)

I will be thankful for your help.

Many thanks,

R Visualization ggplot2 • 1.1k views
ADD COMMENT
0
Entering edit mode
@james-w-macdonald-5106
Last seen 1 day ago
United States

You are in the wrong place. This site is for support for Bioconductor packages, and ggplot2 is not Bioconductor. You might try stackoverflow or biostars or just a well crafted google search

ADD COMMENT
0
Entering edit mode

Thanks James, I have sorted this issue, just need to change Sample to Region. sorry for wrong post.

Many thanks,

ADD REPLY

Login before adding your answer.

Traffic: 406 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6