This is a test version of Biostars. For the public version, visit https://www.biostars.org.
plot Roary results for oan genome analysis

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

0 answers

No answers yet.

Log in to answer this question.