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

adwords click HTTP referers
Postrotate functionality in logback
Centralized logging for simple docker applications
How to delete logs(NLog)?
From Google Analytics to (nearly) access.log
How do I log initialize/end times in Sidekiq?
Spring AOP, log the execution of a method
logrotate: log does not need rotating
How to get a Console output in ASP.NET Core with IIS Express
How to have sas log in both external location and sas enterprise guide
Monolog log rotation locks command executing
Kibana logs to Syslog in JSON format
How to configure logs of multiple groovy file into one log file?
Java webapp with logback and slf4j setup
Gradle: How to silence logger.warn messages?
Disable logging ehcache programatically

Categories

HOME
kendo-ui
sql-server-2014
locale
snappy
webvr
abc
phantomjs
assign
singleton
checkpoint
wkhtmltopdf
ejb-3.0
aws-sdk-cpp
point-of-sale
virtualenv
sha1
aws-devicefarm
glibc
tcpdf
ps
core-animation
traveling-salesman
multiple-inheritance
r-factor
akamai
log4net-configuration
kubectl
storefront
webmock
powerbi-embedded
odp.net
minitest
ansible-inventory
repeat
respect-validation
kofax
motherboard
abide
yelp
word-wrap
server-side-swift
rbac
google-cloud-powershell
rexx
cakephp-3.2
amazon-fire-tv
encoder
xmldom
opos
jcs
openpgp.js
htop
liferay-ide
tsc
sharing
portaudio
firebase-polymer
toggleclass
rowname
change-password
airwatch
avi
phpdesigner
abstract
apache2-module
skscene
commercetools
redquerybuilder
hexagonal-tiles
nmock
litedb
clearquest
tinymce-plugins
crtdbg.h
fedena
react-os
growl
xmlserializer
powerpoint-2010
pnunit
ios-enterprise
xts
android-relativelayout
sendy
webshim
nodeunit
cvi
data-layers
kuka-krl
flask-mongoengine
carrier
mdp
google-mirror-api
surfaceview
grunt-contrib-imagemin
biztalk-deployment
volatility
invalidoperationexception
gssapi
animationdrawable
jqzoom
jquery-click-event
qvariant
auto-compile
xhtmlrenderer
cryptolicensing
hs-err
conditional-operator
pitch-shifting
datadude
ffdshow
office-2003

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