Fork me on GitHub

ggplot from ŷhat


labs

Usage

labs(x=..., y=..., title=...)

Arguments

Name Description
x Label for x axis.
y Label for y axis.
title Title for the graph.

Examples

ggplot(diamonds, aes(x='carat', y='price', color='cut')) +\
    geom_point() +\
labs(title="Diamonds")
ggplot(diamonds, aes(x='carat', y='price', color='clarity')) +\
    geom_point() +\
labs(title="Diamonds", x="Size in carats", y="$$$")