[R] change the x axis tickmarks when using plot function in drc package
Jim Lemon
drjimlemon at gmail.com
Wed Dec 9 04:22:42 CET 2015
Hi Hannah,
Try this:
plot(mod, type="all",log="xy")
Jim
On Wed, Dec 9, 2015 at 1:57 PM, li li <hannah.hlx at gmail.com> wrote:
> Hi all,
> When plotting the dose response curve using plot function as in the
> example codes below, the scale of the axis should really be on the log
> scale of the dose given the shape of the graph. But as you can see, the
> tickmarks of the returned graph represent the original scale. How can I
> change the tick marks to the scale that the correspond to log(dose)?
> Thanks much in advance.
> Hanna
>
>
> dose <- rep(50*2^(-(0:11)),3)
> dose
> d <- 100
> c <- 1
> b <- 1
> e <- 1.6
> y <- rnorm(length(dose))+ c+ (d-c)/(1+exp(b*(log(dose)-log(e))))
> library(drc)
> mod <- drm(y~dose, fct = LL.4())
> summary(mod)
> plot(mod, type="all")
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>
[[alternative HTML version deleted]]
More information about the R-help
mailing list