我是一名外科医生,喜欢编码. 我尽力使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.
更多推荐
从日记复制表格和情节
发布评论