search for: math_format

Displaying 7 results from an estimated 7 matches for "math_format".

Did you mean: mail_format
2017 Aug 11
2
Annotation Ticks on the axis
...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_continuous(sec.axis = sec_axis(~.)) I get the f...
2017 Aug 11
0
Annotation Ticks on the axis
...> > 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_co...
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
...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+00 rec 5.5e+00 rec 5.5...
2012 Mar 02
0
ggplot2 0.9.0
...nly some scales possessed, and the `major` argument to the data time scales. This function should take a vector of breaks as input, and return a character vector or list of expressions as output. See `comma_format`, `dollar_format`, `percent_format`, `scientific_format`, `parse_format` and `math_format` for examples * Transformations are now provided by the scales package - see `?trans_new` for list of available transformations, and how to create your own. The transformations in this package should do a better job at computing default breaks. * Transformations for continuous scales are no...
2012 Mar 02
0
ggplot2 0.9.0
...nly some scales possessed, and the `major` argument to the data time scales. This function should take a vector of breaks as input, and return a character vector or list of expressions as output. See `comma_format`, `dollar_format`, `percent_format`, `scientific_format`, `parse_format` and `math_format` for examples * Transformations are now provided by the scales package - see `?trans_new` for list of available transformations, and how to create your own. The transformations in this package should do a better job at computing default breaks. * Transformations for continuous scales are no...