This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Error in cnetplot enrichplot package

Hello I have a question about cnetplot in enrichplot When I use it Show me this error

Error in graph_from_data_frame(d = d , directed = directed, vertices = vertices) : the data frame should contain at least two columns

Please help

r

The error message is pretty clear, and without more context, we cannot really help you here.

My friend do this analysis with exact same Data frame without any error

That kind of context does not really help. Please show us:

  1. "this analysis" - do you mean just the exact line of code above or is there more to it that you're just summarizing here?
  2. "exact same Data frame" - unless your friend ran the analysis on the same R session you're using right now immediately before you, there is no "exact same Data frame".
  3. "without any error" - we could take your word for this but showing some sort of code + example input + output will actually help.

So the only context here is that your friend ran some code on some machine and it worked and you are trying to run similar code but are running into problems. Show us your full code and excerpts from your data frame or better yet, sit with your friend and compare notes.

See my friend sent me his data frame for me

How does one "send" an in-memory data structure?

We write it to csv and then send it via email

I check dataframe it has more than 2 columns

Show us the exact call to cnetplot() with a sample of all input parameters. Did you compare notes with your friend?

0 answers

No answers yet.

Log in to answer this question.