Is there a way to convert “dist” to “data.frame”?

Is there a way to convert “dist” to “data.frame”?

1

Hi, all.

I will output MDS plot with ggplot2.

But, I couldn’t read the data because the class of the data wasn’t support in ggplot2.
Is there a way to convert “dist” to “data.frame”?

Although I tried “as.data.frame()“, I was not able to do.
The following error messages was outputed.

> as.data.frame(d)
Error in as.data.frame.default(d) : 
  cannot coerce class ‘"dist"’ to a data.frame

I’m a beginner in bioinformatics, so sorry for the basic question.
Could you please advise me?
Thank you very much for your appreciated!


MDS


ggplot2


RNAseq

• 24 views

updated 16 minutes ago by

12k

written 2 hours ago by

▴

20

Read more here: Source link