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

Deciding selecting a nosql db for log analysis
tail spark log in EMR cluster
Is it possible to set an different log level for a set of application classes on Glassfish?
Algolia - How do I search the log files inside Algolia to see what API calls were made yesterday? The “next” button won't cut it. Too many entries
With a fresh install of nativescript, why am I receiving an 'omnistore tincan_msg' message periodically in the console log?
log4j2 overriding close method in custom appenders
Why is the file log and console log of spring boot different?
how to restart docker container based on a log line?
How to configure the log level of a specific logger using log4j in pyspark?
GKE - Stackdriver
Redirect logs from external third part library to GLOG
log4j specialized appender for logger
How can I detect network disconnection in Apache Camel?
Gunicorn logging preloaded app
Gradle logging level for specific package
log4j2 Setting printObject to true in custom Appender

Categories

HOME
http
kendo-ui-angular2
stanford-nlp
dronekit
apache-storm
jquery-plugins
css-selectors
ionic-native
aspectj
ng2-charts
expo
javascript-debugger
repeater
box2d
web-testing
gpo
react-jsx
git-branch
cherrypy
javaagents
wai-aria
uipath
policy
ppp
android-6.0-marshmallow
dynamic-memory-allocation
jql
mootools
wunderground
minitest
sdl-2
maven-2
realloc
pygraphviz
latency
tapply
intervention
weld
azure-data-catalog
automapper-4
cloudconvert
ear
dotnet-cli
try-catch-finally
zedgraph
node.js-client
bipartite
codesniffer
firebase-job-dispatcher
foreground
objectify
weblogic-maven-plugin
std
apache2-module
dynamics-nav-2013
imageicon
event-tracking
random-sample
traminer
nmock
tokudb
glog
waterline
avd
skview
connection-timeout
chunks
crtdbg.h
quickfixn
kss
report-builder2.0
nsmutableurlrequest
oxygenxml
rssi
class-library
.net-reflector
nativequery
netbeans-plugins
adabas
myrrix
ojb
violation
maven-webstart-plugin
google-checkout
magicsuggest
invalidoperationexception
orchestration
motordriver
states
android-memory
winrt-async
mvcmailer
unordered-set
facebook-winjs-sdk
idtabs
httppostedfilebase
windows-xp-embedded
html5-animation
mysql-logic
manuals
retrospectiva
content-delivery-network
weak-typing

Resources

Encrypt Message