[R] change the x axis tickmarks when using plot function in drc package

li li hannah.hlx at gmail.com
Wed Dec 9 04:56:00 CET 2015


Thanks for the reply but that does not seem to work. With that the plot is
on log scale for both the response and the dose levels, but the tickmarks
are still on the original scale.


2015-12-08 22:22 GMT-05:00 Jim Lemon <drjimlemon at gmail.com>:

> 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