logging


ggplot log scale y axis straight lines


I am having troubles with a simple ggplot that I need to incorporate a log scale y axis in. I understand that ggplot is right with curving lines once my axis has the log scale, but I need the lines to still connect my data points linearly.
This is my code:
forexample<-transform(example, EXP=factor(EXP, levels=unique(EXP)))
plot<-ggplot(forexample, aes(x=EXP, y=concentration, shape=sample))
+ stat_summary(aes(group = sample), fun.y = mean, geom = 'line', alpha=1, size=0.5)
+ stat_summary(aes(group = sample), fun.y = mean, geom = 'point', alpha=1, size=4) +
theme_bw() +
coord_trans(y = "log10")
my data is structured like this:
sample concentration EXP
H 0.08 Ex1
H 0.07 Ex2
M 2.00 Ex1
M 0.50 Ex2
R 0.01 Ex1
...
I tried Zoltáns suggestion in the question "ggplot2 log scale of y axis causing curved lines" but it didnt work out for me.
(ggplot2 log scale of y axis causing curved lines)
I would be really really glad if somebody could help me with this!
Thank you :)
This is the intended behavior of coord_trans, and is distinct from scale_y_log10. See also: http://stackoverflow.com/a/25257463/3330437
require(dplyr) # for data construction
require(scales) # for modifying the y-axis
data_frame(x = rep(letters, 3),
y = rexp(26*3),
sample = rep(c("H", "M", "R"), each = 26)) %>%
ggplot(aes(x, y, shape = sample)) + theme_bw() +
geom_point() + geom_path(aes(group = sample)) +
scale_y_log10()
If you want the y-axis labels and gridlines to look more like the coord_trans defaults, use scale_y_log10(breaks = scales::pretty_breaks()).

Related Links

Disable logging on interactive containers
unable to see request logs in webpack-dev-server
Dependency Injection With NLog
Java Spring MVC logging
How to terminate a Log::Log4perl
Logging in GWT to console
Throttling with Logstash and scaling
Parse logs in fluentd
Writing a log file for Protractor/Jasmine tests without using command line
how to show stacktrace in a bluemix app (play app using java buildpack and slf4j for logging)
rsyslog - forwarding messages in file
Why is Sails JS debug logging at a higher logging level than info?
Log Access Login on Pentaho 6.0
How to set fields from the log line with FileBeat
Where to log error in go
How to handle RabbitMQ Logs?

Categories

HOME
logging
oop
azure-documentdb
kendo-ui
typo3
ns2
postgresql-9.3
conceptual
arcgis
boxplot
squeak
hiveql
aggregation-framework
flowtype
qt4
revit-api
annyang
dcos
mongoimport
urllib2
watson-dialog
fastreport
openstack-horizon
smooth-scrolling
xna
dev-c++
tcpdf
advertising
uipath
grunt-contrib-uglify
android-6.0-marshmallow
formtastic
typeorm
pypy
edsdk
wordpress-rest-api
spring-oauth2
postgresql-9.6
epub
microstrategy
webclient
restler
matlab-compiler
pyenv
pymunk
border-layout
motherboard
console.readline
rtsp
fisheye
tapply
collation
paperclip
spring-webflow-2
line-endings
aws-rds
sharpssh
selection-sort
bipartite
lightspeed
sqlproj
stripes
distcc
git-cherry-pick
qtruby
instabug
nonblocking
taverna
lytro
cyberduck
log-analysis
valdr-bean-validation
firebase-tools
pysvn
fedena
formbuilder
im4java
nest-initiative
codio
netbeans-plugins
google-mirror-api
surfaceview
ardor3d
misfire-instruction
grape-api
pechkin
usersettings
mosix
idoc
volatility
custom-cursor
motorola-droid
unordered-set
ruby-1.9
utm
digg
lightopenid
cpack
norton
pitch-shifting
jettison
hotfix
memory-consumption

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App