Thanks Greg and Bert for solving my problem.
This gives what I want:
myticks <- 2^(3*(0:11))
mylabels <- parse(text=paste0("2^",log2(myticks)))
xyplot(c+t+u~n,data=x,type="b", xlab="Size", ylab="Number of tangles",
scales=list(x=list(at=4*(1:9)),y=list(log=2,at=myticks,labels=
Do the "at" and "labels" components of the "scales" list argument to xyplot
not do what you want?
Cheers,
Bert
On Thu, Sep 5, 2024 at 4:05 AM Gerrit Draisma wrote:
> Dear R-helpers,
>
> In the plot below I would like to have labels at positions 2^(3*(0:10)),
> and keep the labels in the exponen
Dear R-helpers,
In the plot below I would like to have labels at positions 2^(3*(0:10)),
and keep the labels in the exponential format.
I tried using yscale.components.default.
*This* gives the right format of the labels:
> yscale.components.default(lim= c(0,30),log=2)
$num.limit
[
3 matches
Mail list logo