从日记复制表格和情节

编程入门 行业动态 更新时间:2024-10-20 03:28:48
本文介绍了从日记复制表格和情节的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我是一名外科医生,喜欢编码. 我尽力使R的编码适合我的论文,但是在创建表时遇到了问题. 我在著名期刊(NEJM)中找到了表格和情节组合,看起来像这样:

I am a surgeon and love coding. I do my best to fit R's coding for my papers, but have problem with table creation. I found and table and plot combination in famous journal (NEJM) and it look like this:

如何在 R 中重现这种桌子和林地的组合?

How can I reproduce this kind of table and forest plot combination in R?

推荐答案

没关系:这是通过元数据包完成的

所涉及的工作量将受到您是否要使用R代码生成整个信息页面,还是要使用R在中间创建图形并将其添加到文档(MSWord等)中的重要影响. .)包含文本信息.如果后一种方法可行,则从水平条形图开始(例如, docs .ggplot2/current/geom_boxplot.html ),使用例如theme_classic()清除背景,并使用xlim()缩放x轴.如果您修改了问题并添加了实际数据框的文本表示形式(例如,如本文中所示:),则我或其他人可能会为您生成ggplot代码.

The amount of work involved will be significantly influenced by whether or not you want R code to produce that entire page of information, or want to use R to create the graph in the middle and add it to a document (MSWord, etc.) that contains the text info. If the latter approach is ok, then start with a horizontal bar plot (e.g., docs.ggplot2/current/geom_boxplot.html), use something like theme_classic() to clear background, and use xlim() to scale the x-axis. If you revise your question and add a text representation of an actual data frame (e.g., like in this post: date at which a percentage of maximum was surpassed), me or someone else would probably generate the ggplot code for you.

更多推荐

从日记复制表格和情节

本文发布于:2023-10-16 16:31:02,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1498106.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:表格   情节   日记

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!