theme_horizontal: A [ggplot2] theme with opinionated aesthetics for...

Description Usage Arguments See Also Examples

View source: R/theme_horizontal.R

Description

A [ggplot2] theme with opinionated aesthetics for <https://jota.info>

Usage

1
2
3
4
5
6
theme_horizontal(
  base_size = 10,
  base_family = "sans",
  horizontal = TRUE,
  dark_panel = FALSE
)

Arguments

base_family, base_size

base font family and size

horizontal

logical horizontal axis lines?

dark_panel

logical darker background for panel?

See Also

Other themes: theme_jota()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## Not run: 
library(ggplot2)
library(dplyr)
data(Governismo)

ggplot(Governismo, aes(x=D1, y=D2)) +
  geom_point() +
  labs(x="IDEOLOGIA (D1)", y="POSICIONAMENTO ECONÔMICO (D2)",
       title="Um exemplo de scatterplot",
       subtitle="Apoio ao texto da Reforma: Threshold 80% a 20%",
      caption="Fonte: https://jota.info") +
  theme_horizontal()
 
## End(Not run)

JOTAJornalismo/rJOTA documentation built on Oct. 2, 2020, 4:40 p.m.