How to save a ggplot heatmap output as a df or excel table ?

Hi,
Is it possible to retrieve data out of heatmap made with geom_tile and ggplot and save it as dataframe or excel table ?

The heatmap would have been made from a dataframe though, wouldn't it?

Does not the data frame you used to plot the heatmap on the first place, already contain the data? Can you clarify what you mean?

1 Like

Yes of course, but colors and order of Y and X axis are a bit different than in original df, so I would like to get it as exactly there is on heatmap if possible, because I have here numbers as well placed on heatmap with scale_fill_continuous of colors.

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.