search for: trans_format

Displaying 5 results from an estimated 5 matches for "trans_format".

2017 Aug 11
2
Annotation Ticks on the axis
...ou provided. But I am still not able to implement a solution. Here is my attempt : library(ggplot2) x<-1:10 y<-x^2 df<-data.frame(x=x,y=y) p1<-ggplot(df,aes(x,y))+geom_point()+ scale_x_log10( breaks = scales::trans_breaks("log10", function(x) 10^x), labels = scales::trans_format("log10", scales::math_format(10^.x)) ) + scale_y_log10( breaks = scales::trans_breaks("log10", function(x) 10^x), labels = scales::trans_format("log10", scales::math_format(10^.x)) ) +theme_bw() p2<-p1 + annotation_logticks() p2 p2 + scale_y_continuo...
2017 Aug 11
0
Annotation Ticks on the axis
...plement a solution. Here is my attempt : > > library(ggplot2) > x<-1:10 > y<-x^2 > df<-data.frame(x=x,y=y) > p1<-ggplot(df,aes(x,y))+geom_point()+ > scale_x_log10( > breaks = scales::trans_breaks("log10", function(x) 10^x), > labels = scales::trans_format("log10", scales::math_format(10^.x)) > ) + > scale_y_log10( > breaks = scales::trans_breaks("log10", function(x) 10^x), > labels = scales::trans_format("log10", scales::math_format(10^.x)) > ) +theme_bw() > p2<-p1 + annotation_logticks() &...
2017 Aug 11
0
Annotation Ticks on the axis
Hi see in line > -----Original Message----- > From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Vivek > Sutradhara > Sent: Friday, August 11, 2017 11:02 AM > To: r-help <r-help at r-project.org> > Subject: [R] Annotation Ticks on the axis > > Hi all, > > I would like to have help in getting annotation ticks (corresponding to the > minor
2017 Aug 11
2
Annotation Ticks on the axis
Hi all, I would like to have help in getting annotation ticks (corresponding to the minor grid) on my plot. Here is my toy example : par(mar=c(5, 6, 5, 5) + 0.1) x<-1:10 y<-x^2 plot(x,y,log="xy",xlab="log(x)",ylab="log(y)") par(new=T)
2012 Nov 03
1
Violin plot of categorical/binned data
...t and the kernel but haven't been able to get a figure that seems to work. Anyone have some thoughts on this? Thanks, Nate library(ggplot2) library(scales) p=ggplot(data2,(aes(vessel,values))) p+geom_violin()+ scale_y_log10(breaks = trans_breaks("log10", function(x) 10^x),labels = trans_format("log10", math_format(10^.x))) data2<-read.table(textConnection(" vessel values rec 0.0e+00 rec 0.0e+00 rec 0.0e+00 rec 0.0e+00 rec 0.0e+00 rec 0.0e+00 rec 0.0e+00 rec 5.5e+00 rec 5.5e+00 rec 5.5e+00 rec 5.5e+00 rec 5.5e...