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

How do I do logging in Haskell?
Anonymize IP logging in nginx?
Automatic logging in windows application
Logging to multiple targets with Elmah
what are the better options to achieve low overhead distributed logging on Azure?
Suppress CA1305 for DebugFormat InfoFormat and similar calls
Enterprise Library is not working in Windows 2008 R2
Tail a text file on a web server via HTTP
How to pass context info between NLog loggers?
Logging to Amazon S3
best way to rotate rabbitmq log files
Netbeans CVS-client's commands
Microsoft.ServiceHosting.Tools.DevelopmentFabric.Runtime.dll in Azure SDK 1.4
importing contents of csv file every hour
debug message: before or after? [closed]
Add logging listener for whole test suite

Categories

HOME
repository
gcc
netty
ebay-api
x86-64
jquery-plugins
x509certificate
richtextbox
install
doctrine2
oms
aws-sdk-cpp
point-of-sale
drush
responsive
web-parts
md2
printf
descriptor
include-path
advertising
windowserror
utc
meteor-accounts
azure-table-storage
kundera
jbossfuse
multilanguage
visual-studio-debugging
language-detection
imdb
kubectl
qt-designer
luhn
incapsula
asp.net-webhooks
maven-2
stencyl
pygraphviz
motion
ssdp
electron-packager
pyexcel
paperclip
codepen
amazon-fire-tv
niagara-ax
activeandroid
history
cancan
dna-sequence
jscoverage
suitesparse
racket-student-languages
jira-agile
particle-system
git-cherry-pick
gdi
nsoperationqueue
transaction-isolation
phpdesigner
paypal-subscriptions
abstract
apache2-module
dynamics-nav-2013
overlapping
bioconductor
magnet-uri
mojolicious
xml-simple
sparkcore
vensim
tokudb
fileinputstream
sony-xperia
esri-arc-engine
teamstudio-unplugged
jsonschema2pojo
qf-test
sync
gnip
oxygenxml
nspopupbutton
cs193p
winrun4j
fastcgi-mono-server
db2-connect
grunt-contrib-imagemin
friendly-id
octokit
listpicker
codeigniter-form-helper
brew
erlide
facebook-winjs-sdk
functional-specifications
excellibrary
qlibrary





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