小编Ben*_*ina的帖子

使用 ggplot 和 glm 绘制剂量反应曲线的问题

我目前尝试使用 glm 来创建剂量反应曲线。我能够使用 glm 中的 bio 名义族和 probit 函数创建曲线,但想使用 ggplot 而不是 R 的基本绘图函数绘制曲线。将基本图与 ggplot 进行比较时,ggplot 生成的曲线不正确,我不确定如何使其与基本图相同。此外,使用 ggplot 绘制曲线时,置信区间不正确。谢谢你的帮助。

library(ggplot2)
library(Hmisc)
library(plyr)
library(MASS)



create dataframe: 
#1) column is exposure concentration
#2) column is the total number of organism died over 12 h of exposure to the 
    corresponding concentration 
#3) column is the total number that survived over 12 h to the corresponding 
    concentration
#4) column is the total number of organism exposed to the corresponding 
    concentration
#5) fifth is the percentage …
Run Code Online (Sandbox Code Playgroud)

r ggplot2

2
推荐指数
1
解决办法
1943
查看次数

标签 统计

ggplot2 ×1

r ×1