theme_pdf: Pretty theme

View source: R/utils.R

theme_pdfR Documentation

Pretty theme

Description

Pretty theme

Usage

theme_pdf(show.ticks = TRUE, legend.pos = NULL)

Arguments

show.ticks

boolean Whether to show x- and y-ticks (default=TRUE).

legend.pos

Vector with x and y position of the legend (default=NULL).

Value

ggplot2 with plot ticks and positioned legend

Examples

library(ggplot2)
library(ggrastr)

data = rnorm(100)
colors = (1:100/100)
ggplot() + geom_point(aes(x=data, y=data, color=colors)) + theme_pdf(FALSE, legend.pos=c(1, 1))


VPetukhov/ggrastr documentation built on June 28, 2023, 10:25 a.m.