Entering edit mode
8 months ago
Farhad
•
0
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
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:
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?