southman avatar

Drawing line and point graphs in ggplot

south-man

Published: 29 Mar 2018 › Updated: 29 Mar 2018Drawing line and point graphs in ggplot

Drawing line and point graphs in ggplot

library(ggplot2)
ggplot(pressure, aes(x=temperature, y=pressure)) +
geom_line() +
geom_point() +
geom_line(mapping = aes(y=pressure/2, colour="red")) +
geom_point(mapping = aes(y=pressure/2), colour="red")

Leave Drawing line and point graphs in ggplot to:

Written by

Read more #ggplot posts


Best Posts From southman

We have not curated any of south-man's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From southman