Learn R Programming

GGally (version 1.4.0)

ggally_diagAxis: Internal Axis Labeling Plot for ggpairs

Description

This function is used when axisLabels == "internal".

Usage

ggally_diagAxis(data, mapping, label = mapping$x, labelSize = 5,
  labelXPercent = 0.5, labelYPercent = 0.55, labelHJust = 0.5,
  labelVJust = 0.5, gridLabelSize = 4, ...)

Arguments

data

dataset being plotted

mapping

aesthetics being used (x is the variable the plot will be made for)

label

title to be displayed in the middle. Defaults to mapping$x

labelSize

size of variable label

labelXPercent

percent of horizontal range

labelYPercent

percent of vertical range

labelHJust

hjust supplied to label

labelVJust

vjust supplied to label

gridLabelSize

size of grid labels

...

other arguments for geom_text

Examples

Run this code
# NOT RUN {
 data(tips, package = "reshape")
 ggally_diagAxis(tips, ggplot2::aes(x=tip))
 ggally_diagAxis(tips, ggplot2::aes(x=sex))
# }

Run the code above in your browser using DataLab