排除热图row_side_colors

发布于 2025-02-07 08:26:50 字数 1108 浏览 0 评论 0原文

我正在尝试使用 heatmaply rstudio 中进行基本的热图。我的数据看起来像这样:

”在此处输入图像描述”

我尝试了以下命令:

eg <- read.delim(file="example_heatmap.txt", header=T, sep="\t")
heatmaply(
    file="heatmap_eg.png",
    height=2000, 
    eg, 
    colors=colorRampPalette(colors=c("lightblue", "darkblue")), 
    column_text_angle = 45, 
    plot_method = "plotly",
    key.title = "Ab", 
    labRow = eg[,1]
)

the output:

“在此处输入图像说明”

现在,在输出图中,我不希望每行的颜色栏。我尝试了不同的选项,但无法摆脱行的颜色棒。我希望我的输出像以下一个:

”在此处输入图像描述

请帮助。 您的所有反馈都非常感谢。 谢谢, 艾尔维

I'm trying to make a basic heatmap in RStudio using heatmaply. My data look like this:

enter image description here

I tried these commands:

eg <- read.delim(file="example_heatmap.txt", header=T, sep="\t")
heatmaply(
    file="heatmap_eg.png",
    height=2000, 
    eg, 
    colors=colorRampPalette(colors=c("lightblue", "darkblue")), 
    column_text_angle = 45, 
    plot_method = "plotly",
    key.title = "Ab", 
    labRow = eg[,1]
)

The output:

enter image description here

Now, in the output figure, I don't want the color bars at each row. I tried different options but couldn't get rid of the color bars from the rows. I want my output like the following one:

enter image description here

Please help.
All your feedbacks are highly appreciated.
Thanks,
Alvee

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文