Ggplot - Title (Graph, axis, legend )

Ggplot Graphic Plot

About

Graph and axis title

Title

Plot

labs(title = "New plot title")
# or
ggtitle ("New plot title")

Axis

labs(x = "New x label")
labs(y = "New y label")
# or
xlab("New x label")
ylab("New y label")

Legend

labs(color = "New Legend Color")

Documentation / Reference





Discover More
Ggplot Scale Coordinate System
GGplot - Scale (Data Transformation)

Scales control the mapping between data and aesthetics, and control the display of the matching guide (axis or legend) Ex: Linear scaling of x and y axes (scales) See: scale_continuous, scale_discrete,...
Ggplot Graphic Plot
Ggplot - Label

See



Share this page:
Follow us:
Task Runner