theme_gnuplot: gnuplot theme for ggplot2

Description Usage Arguments See Also Examples

View source: R/ggnuplot.R

Description

This theme makes ggplot2 look like gnuplot. It is based on ggplot2::theme_linedraw() and has inward ticks.

Usage

1
2
3
4
5
6
theme_gnuplot(
  base_size = 11,
  base_family = "",
  base_line_size = base_size/22,
  base_rect_size = base_size/22
)

Arguments

base_size

base font size

base_family

base font family

base_line_size

base size for line elements

base_rect_size

base size for rect elements

See Also

The default ggplot2 themes and ggplot2::theme()

Examples

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

ggplot(iris, aes(Sepal.Width, Sepal.Length, color = Species)) +
  geom_point() +
  scale_color_gnuplot() +
  scale_x_gnuplot() +
  scale_y_gnuplot() +
  theme_gnuplot()

hriebl/ggnuplot documentation built on June 6, 2020, 1:33 a.m.