search for: scale_y_log

Displaying 3 results from an estimated 3 matches for "scale_y_log".

2007 Jul 14
1
scaling of different data sets in ggplot
...par(new=TRUE) plot(x,z,col=2,pch=3,yaxt="n",ylab="") lines(lowess(x,z,f=1/3),col=2) axis(4,col=2,col.axis=2) mtext("z",4,line=3,col=2) In ggplot: ## data specification ggplot(data=data.frame(x,y,z)) + ## first set of points geom_point(mapping=aes(x=x,y=y)) + ## scale_y_log() + ## second set of points geom_point(mapping=aes(x=x,y=z),pch=3) + ## layer(mapping=aes(x=x,y=z),stat="smooth",method="loess") + ## scale_y_continuous() scale_y_log() and scale_y_continuous() appear to apply to both mappings at once, and I can't figure out how to a...
2011 Sep 07
1
linear regression, log-transformation and plotting
...o plot the data. As usual I'd like to plot the original data (not log transformed) but in a log-scale. I tried two approaches the standard plot function and ggplot. # Plot with ggplot ggplot()+ geom_point(aes(b1,a1,data=data1))+ geom_abline(aes(intercept=coef(model)[1],slope=coef(model)[2]))+ scale_y_log()+ scale_x_log() # Plot with standard plot plot(b1,a1,log="xy") abline(model,untf=T) abline(model,untf=F) 1) The regression lines are different for plot vs. ggplot(transformed or untransformed). So what is actually the correct line? 2) The regression line was calculated on basis of lo...
2010 Aug 30
3
log y 'axis' of histogram
All, I have been trying to get calls to hist(...) to be plotted with the y-axis having a log scale. I have tried: par(ylog=TRUE) I have also looked at the histogram package. Suggestions welcome. -- Derek M. Jones tel: +44 (0) 1252 520 667 Knowledge Software Ltd mailto:derek at knosof.co.uk Source code analysis http://www.knosof.co.uk