跟着NC学作图 | 批量柱状图+散点+差异分析

今天要复现的图来自2024年 2月的一篇Nature Communication。今天先来复现其中的一幅柱状图

DOI:10.1038/s41467-024-45925-5

前言

今天这副图片的内容是批量柱状图+散点+差异分析,我们使用EcoAmp来进行绘制。使用我下面设置好的模板即可一键复现

原文图片+我的复现

数据准备

从原文中下载数据,数据格式整理成如下:

分组信息:

EcoAmp复现结果

打开软件,选择分组柱状图-分面2 功能

然后拖动输入准备好的文件,点击运行程序

然后会出现如下图形:

接着导入准备好的配置文件即可,配置文件我将放在下方

导入之后,点击刷新图片即可复现

 

本期使用的配置文件

配置文件使用方法:EcoAmp中的一些注意事项参数 - leo朵

{
    "picture_width": "7.5",
    "picture_height": "6",
    "font_Style": "Arial",
    "axis_text_x_Alignment": "right",
    "axis_text_y_Alignment": "middle",
    "axis_text_x_angle": "45",
    "axis_text_y_angle": "0",
    "show_x_title": true,
    "x_title_text": "",
    "show_y_title": true,
    "y_title_text": "",
    "Size_x_title": "15",
    "x_title_font_weight": "plain",
    "x_title_color": "#191919",
    "Size_y_title": "14",
    "y_title_font_weight": "plain",
    "y_title_color": "#191919",
    "Size_x_Axis": "10",
    "x_Axis_font_weight": "bold",
    "x_Axis_color": "#191919",
    "Size_y_Axis": "14",
    "y_Axis_font_weight": "plain",
    "y_Axis_color": "#191919",
    "show_title": false,
    "title_name": "",
    "title_size": "20",
    "title_color": "#191919",
    "title_font_weight": "plain",
    "show_legend": false,
    "legend_text_font_weight": "plain",
    "legend_text_color": "#191919",
    "legend_text_font_size": "14",
    "legend_title_font_size": "14",
    "legend_title_font_weight": "plain",
    "legend_title_color": "#191919",
    "custom_legend_title_name": "",
    "legend_position": "right",
    "legend_direction": "vertical",
    "inside_legend_x": "0.5",
    "inside_legend_y": "0.8",
    "show_x_\u523b\u5ea6": true,
    "show_y_\u523b\u5ea6": true,
    "x_\u523b\u5ea6\u957f\u5ea6": "0.20",
    "y_\u523b\u5ea6\u957f\u5ea6": "0.30",
    "x_\u523b\u5ea6\u989c\u8272": "#191919",
    "y_\u523b\u5ea6\u989c\u8272": "#191919",
    "x_\u523b\u5ea6\u7c97\u7ec6": "0.80",
    "y_\u523b\u5ea6\u7c97\u7ec6": "0.80",
    "x\u523b\u5ea6\u4f4d\u7f6e": "outside",
    "y\u523b\u5ea6\u4f4d\u7f6e": "outside",
    "show_x_Axis_border": true,
    "show_y_Axis_border": true,
    "colour_x_Axis_border": "#191919",
    "colour_y_Axis_border": "#191919",
    "size_x_Axis_border": "0.8",
    "size_y_Axis_border": "0.8",
    "show_panel_border": false,
    "panel_border_colour": "#191919",
    "panel_border_size": "1.5",
    "bar_width": "0.70",
    "bar_inner_width": "0.00",
    "bar_alpha": "1.00",
    "show_bar_border": false,
    "bar_border_size": "1",
    "bar_border_color": "#191919",
    "bar_border_color_follow_bar": false,
    "bar_color_set": "Set1",
    "bar_color_show_custom_color": true,
    "custom_colors1": "#f9766e",
    "custom_colors2": "#7cae00",
    "custom_colors3": "#00c0c8",
    "custom_colors4": "#c47cf9",
    "custom_colors5": "#D7D7D7",
    "custom_colors6": "#D7D7D7",
    "custom_colors7": "#D7D7D7",
    "custom_colors8": "#D7D7D7",
    "custom_colors9": "#D7D7D7",
    "custom_colors10": "#D7D7D7",
    "show_point": true,
    "point_jitter_width": "1",
    "point_alpha": "1",
    "point_size": "2.5",
    "point_shape": "21",
    "point_color": "#191919",
    "point_stroke": "0.6",
    "point_color_follow_bar": false,
    "show_errorbar": true,
    "error_bar_type": "sd",
    "errorbar_single": false,
    "error_bar_color_follow_bar": false,
    "errorbar_width": "0.3",
    "errorbar_size": "1.5",
    "error_bar_color": "#191919",
    "show_sig_letter": true,
    "sig_letter_type": "group",
    "sig_letter_level": "0.05",
    "sig_letter_method": "LSD",
    "letter_color": "#191919",
    "letter_size": "5",
    "letter_style": "plain",
    "letter_height_factor": "0.1",
    "letter_color_follow_bar": false,
    "show_sig_star": false,
    "sig_star_method": "t\u68c0\u9a8c(\u7b49\u65b9\u5dee)",
    "sig_padj_method": "none",
    "hide_ns": false,
    "star_or_pvalue": "p.signif",
    "sig_star_height": "0",
    "sig_star_size": "6",
    "star_font_weight": "plain",
    "star_line_type": "1",
    "star_line_tiplength": "0.03",
    "sig_star_color": "#191919",
    "show_plot_background": false,
    "show_panel_background": false,
    "plot_background_color": "#EEEEEE",
    "panel_background_color": "#EEEEEE",
    "show_x_grid_line": false,
    "show_y_grid_line": false,
    "x_grid_line_color": "#FFFFFF",
    "x_grid_line_size": "0.5",
    "y_grid_line_color": "#FFFFFF",
    "y_grid_line_size": "0.5",
    "from_top_distance": "0.15",
    "from_bottom_distance": "0.05",
    "ylim_min": "",
    "ylim_max": "",
    "\u662f\u5426\u81ea\u5b9a\u4e49y\u523b\u5ea6": false,
    "y\u523b\u5ea6": "0,1,2,3,4,5",
    "format_y_number_style": "",
    "\u662f\u5426\u8bbe\u7f6ey\u8f74\u65ad\u70b9": false,
    "y\u8f74\u65ad\u70b9\u4e0b\u9650": "",
    "y\u8f74\u65ad\u70b9\u4e0a\u9650": "",
    "\u65ad\u533a\u7684\u5bbd\u5ea6": "0.10",
    "ncol": "3",
    "strip_position": "left",
    "scales_method_y": "free",
    "scales_method_x": "free",
    "strip_background_color": "#EEEEEE",
    "strip_background_border_color": "#191919",
    "strip_background_border_size": "1",
    "strip_text_color": "#191919",
    "strip_text_size": "12",
    "strip_text_font_weight": "bold",
    "show_strip_text": true,
    "show_strip_background": false
}

示例数据下载

https://pan.cstcloud.cn/s/lPtIHglYT9g

本文最后更新于2025-05-10如有失效,请留言
THE END