plot Roary results for oan genome analysis
0
1
Entering edit mode
3.4 years ago

Dear All

Can anybody tell me the error I encountered while implementing this code? Everything is running fine with my code but thi code is unable to generate a second graph for total, unique and core genes.

https://www.lesleysitter.com/2019/08/23/roary-analysis/

p1 <- ggplot(melt_summary_table, aes(x = reorder(Var2, value), y = value)) + 
      geom_bar( stat = 'identity') + 
      facet_grid(. ~ Var1, scales = "free_x") + 
      xlab("Genomes") +
      ylab("Count") +
      coord_flip()

Running this line gives me a error like

show(p1)
Error: At least one layer must contain all faceting variables: `Var1`.
* Plot is missing `Var1`
* Layer 1 is missing `Var1`

Can anybody help me out with this?

R Roary • 797 views
ADD COMMENT

Login before adding your answer.

Traffic: 2135 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