spiffify: 'spiffify' adds some formatting to a ggplot to make it easier...

Description Usage Arguments Examples

View source: R/spiffify.R

Description

spiffify adds some formatting to a ggplot to make it easier to read.

Usage

1
2
spiffify(base_size = 17, lineheight = 0.8, face = "bold",
  angle = 45, vjust = 1, hjust = 1)

Arguments

base_size

The base size of for ggplot. Defaults to 17.

lineheight

The lineheight for ggplot. Defaults to .8.

face

Font face. Defaults to bold.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
library(languageR)
library(ggplot2)

lexdec.rt <- lexdec[lexdec$Correct=="correct",]

ggplot(lexdec.rt, aes(x=Frequency, y=RT)) + geom_smooth() +
  geom_point(alpha=.1) + ggtitle("Freqyency by RT")

ggplot(lexdec.rt, aes(x=Frequency, y=RT)) + geom_smooth() +
  geom_point(alpha=.1) + ggtitle("Freqyency by RT") + spiffify()

jasongullifer/convenience documentation built on May 21, 2019, 10:31 a.m.