emptyPlot: Make your base plot

Description Usage Arguments Value Examples

Description

emptyPlot simply makes a base for you, when you draw a plot using base package. It has presetting base theme which is suitable for scientific but pretty.

Usage

1
emptyPlot(xrange = c(0, 1), yrange = c(0, 1), xlab = "", ylab = "", ...)

Arguments

xrange

the x axis range that you want to show in plot

yrange

the y axis range that you want to show in plot

xlab

the x axis lable

ylab

the y axis lable

...

you can freely use other options from plot function

Value

the plot with coloring and x and y axis line, plus dash support line

Examples

1
2
3
4
  a <- seq(-2, 2, by = 0.1)
  b <- a^2
  emptyPlot(c(-2, 2), c(-2, 2), main = "title", xlab = "x", ylab = "y")
  points(a, b, type = "l", col = "red")

issactoast/r4issactoast documentation built on May 19, 2019, 8:22 a.m.