Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Fix log plot in R

$
0
0

I want a plot with a log scale in x-axis and a "normal" y-axis.

I got a plot but I see a strange thing on my y-axis which I couldnt figure out.

g <- ggplot(mtcars, aes(mpg, disp)) +
  geom_line(size = 1, color = "blue") +
  scale_x_log10(breaks = breaks, minor_breaks = minor_breaks, limits = c(0.1,50)) +
  annotation_logticks()
g

What is this thing on the y-axis and how can I get rid of it?


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>