Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About vcfR::heatmap.bp, is there a way to scale the heatmap but keep the barplot as sum of unscaled values? #183

Open
hope-data-science opened this issue Apr 14, 2021 · 2 comments

Comments

@hope-data-science
Copy link

The heatmap produced by heatmap.bp is really beautiful, is there a way to scale the rows but keep the barplot to summarise the raw data? Thanks.

@knausb
Copy link
Owner

knausb commented Apr 14, 2021

I'm not sure I understand you. The height of each row should scale with the height of the figure. Each bar of the marplot should scale with the row height. Perhaps you could provide some sort of example for what you're looking for?

@hope-data-science
Copy link
Author

Thank you for the prompt feedback. I'll use the example presented in the helping manual:

library(vcfR)

x  <- as.matrix(mtcars)

heatmap.bp(x)  # pic1
heatmap.bp(x, scale="col") # pic2

The above codes yields two pictures, pic1 and pic2. I want to keep the side barplot in pic1, but I want to use the heatmap in pic2. Is that possible?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants