跟着NC学作图 | 批量箱线图+散点+差异分析
今天要复现的图来自2021年 7月的一篇Nature Communication
。今天先来复现其中的一幅箱线图
。
DOI:10.1038/s41467-021-24482-1
前言
今天这副图片的内容是批量箱线图+散点+差异分析,我们使用EcoAmp来进行绘制。EcoAmp是一个使用R语言作为绘图工具,python编写界面化的用户友好型的绘图软件。
原文图片:
我的复现:
数据准备
从原文中下载提供的数据
分组信息:
复现结果
打开分组箱线图-分面
的程序
拖动输入数据和分组信息,然后点击运行
会出现如下的结果,不要慌,因为图片太多了默认设置的尺寸比较小,所以绘制的箱线图都看不见了,我们需要将尺寸调大即可
可以在右边的参数调整区对图形进行调整,这里可以直接导入我们的配置文件即可
导入之后然后点击左下角的刷新图片,然后等待8s左右即可复刻出图,当然也可以替换成你自己的数据
然后可以导出jpg,pdf,svg等格式,然后可以在图片编辑软件中进一步调整一下即可。
下面提供配置文件如下,复制下面的数据,粘贴到txt文本中,然后将后缀名称改成json即可在软件中导入配置:
{
"picture_width": "11",
"picture_height": "11",
"font_Style": "Arial",
"axis_text_x_Alignment": "middle",
"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": "14",
"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": "16",
"x_Axis_font_weight": "plain",
"x_Axis_color": "#191919",
"Size_y_Axis": "16",
"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.30",
"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.60",
"y_\u523b\u5ea6\u7c97\u7ec6": "0.60",
"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.6",
"size_y_Axis_border": "0.6",
"show_panel_border": false,
"panel_border_colour": "#191919",
"panel_border_size": "1.5",
"bar_width": "0.50",
"bar_inner_width": "0.00",
"bar_alpha": "0.00",
"bar_border_size": "1",
"bar_border_color": "#191919",
"bar_border_color_follow_bar": true,
"bar_color_set": "Set1",
"bar_color_show_custom_color": true,
"custom_colors1": "#6dba54",
"custom_colors2": "#4579af",
"custom_colors3": "#eeb975",
"custom_colors4": "#cb5457",
"custom_colors5": "#D7D7D7",
"custom_colors6": "#D7D7D7",
"custom_colors7": "#D7D7D7",
"custom_colors8": "#D7D7D7",
"custom_colors9": "#D7D7D7",
"custom_colors10": "#D7D7D7",
"show_point": true,
"point_jitter_width": "0.6",
"point_alpha": "1",
"point_size": "1.5",
"point_shape": "16",
"point_color": "#191919",
"point_stroke": "0.1",
"point_color_follow_bar": true,
"show_errorbar": false,
"error_bar_color_follow_bar": false,
"errorbar_width": "0.3",
"errorbar_size": "1",
"error_bar_color": "#191919",
"show_sig_letter": false,
"sig_letter_type": "group",
"sig_letter_level": "0.05",
"sig_letter_method": "TukeyHSD",
"letter_color": "#191919",
"letter_size": "6",
"letter_style": "plain",
"letter_height_factor": "0.08",
"letter_color_follow_bar": false,
"show_sig_star": true,
"sig_star_method": "t\u68c0\u9a8c(\u7b49\u65b9\u5dee)",
"sig_padj_method": "holm",
"hide_ns": true,
"star_or_pvalue": "p.adj.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.90",
"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",
"code_text": "",
"show_average_point": false,
"average_point_shape": "5",
"average_point_size": "3",
"average_point_color": "#D7D7D7",
"average_point_stroke": "0.1",
"ncol": "5",
"strip_position": "top",
"scales_method_y": "free",
"scales_method_x": "fixed",
"strip_background_color": "#EEEEEE",
"strip_background_border_color": "#191919",
"strip_background_border_size": "1",
"strip_text_color": "#191919",
"strip_text_size": "16",
"strip_text_font_weight": "bold.italic",
"show_strip_text": true,
"show_strip_background": false,
"point_offset": "0",
"show_outlier_point": false,
"outlier_shape": "16",
"outlier_size": "3",
"outlier_color": "#191919"
}
数据下载:
https://www.123684.com/s/g5qnjv-98zaH
本文最后更新于
2025-04-26
如有失效,请留言
THE END