f_geom_point: Plot geom point

View source: R/f - Geom Point.R

f_geom_pointR Documentation

Plot geom point

Description

Plot geom point

Usage

f_geom_point(
  df.plot,
  c.x,
  c.y,
  c.facet = NULL,
  n.alpha = 0.2,
  b.log.x = FALSE,
  b.log.y = FALSE,
  v.abline = NULL,
  c.labs.x = NULL,
  c.labs.y = NULL,
  b.grid.major.x = FALSE,
  b.grid.major.y = FALSE,
  b.coord.fixed = FALSE,
  v.scale.x.continuous = NULL,
  v.scale.y.continuous = NULL,
  c.labs.title = waiver(),
  c.labs.subtitle = waiver(),
  c.labs.caption = waiver()
)

Arguments

df.plot

Data frame with data to plot.

c.x

Column name in said data frame to plot on the x-axis.

c.y

Column name in said data frame to plot on the y-axis.

n.alpha

Transparancy of points (default: 0.2)

b.log.x

Should x-scale be log10? (default: FALSE)

b.log.y

Should y-scale be log10? (default: FALSE)

v.abline

Slope and intercept in a vector (default: NULL)

c.labs.x

Label for x-axis (default: NULL)

c.labs.y

Label for y-axis (default: NULL)

b.grid.major.x

Should grid added on x-axis (default: FALSE)

b.grid.major.y

Should grid added on y-axis (default: FALSE)

b.coord.fixed

Should x-axis and y-axis have fixed ratio of 1 (default: FALSE)

v.scale.x.continuous

Breaks along x-axis (default: NULL)

v.scale.y.continuous

Breaks along y-axis (default: NULL)

c.labs.title

Main title (default: waiver())

c.labs.subtitle

Subtitle (default: waiver())

c.labs.caption

Caption under the plot (default: waiver())

Details

-

Value

A ggplot object that can be printed.

Author(s)

Pieter Overdevest

Examples

f_geom_point(

       df.plot         df.plot,
       c.x             = 'columnx',
       c.y             = 'columny',
       n.alpha         = 0.2,
       b.log.x         = FALSE,
       b.log.y         = FALSE,
       v.abline        = NULL,
       c.labs.x        = NULL,
       c.labs.y        = NULL,
       c.labs.title    = waiver(),
       c.labs.subtitle = waiver(),
       c.labs.caption  = waiver()
)

pieterov/generaltoolbox documentation built on Jan. 25, 2025, 10:32 a.m.