pythonic生物人

审稿人:凭这个3D bar,必须给minor revisions

一图胜千言,好的图表让审稿人如沐春风!

看到一张好康的图,复现一下。

原图来自s12864-024-10239-9
原图来自s12864-024-10239-9

这是一张3D bar图。

下面使用R简单实现3D bar~


R复现

hist3D(
  x = 1:length(depth), #数据
  y = 1:length(cores),
  z = z,
  bty = "b2", #坐标轴背景
  phi = 25, #旋转角度
  theta = -25,
# xyz轴title
  xlab = "Read depth",
  ylab = "Cores",
  zlab = "Memory(GB)",
  main = "Wham",

# 设置颜色
  col = colorRampPalette(c("#1b9e77", "#a6d96a", "#ffff66"))(50),  # 从海绿色到黄绿色
)
Image

当然,我们可以换成自己钟爱❤️的配色,

  • blue+red色系
Image
Image
  • ocean+green色系
Image
Image
  • blue+red色系
Image
Image
  • 暗色系
Image
Image

获取绘图代码+测试数据+数据处理方法+依赖包安装方法,

👇(备注:299)

图片

一些有用的:

👉2026可视化工具TOP3

👉学习R可视化

👉Python matplotlib

👉嫌Matplotlib繁琐?试试Seaborn