laffer: Laffer curve

Description Usage Arguments

View source: R/laffer.R

Description

Creates Laffer curves. The function allows specifying a custom Laffer curve, modifying the maximum X and Y axis values, creating intersections along the values of the Y-axis and the curve and customizing the final output with other arguments.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
laffer(
  curve,
  t,
  xmax,
  ymax,
  pointcol = 1,
  generic = TRUE,
  showmax = TRUE,
  main = NULL,
  sub = NULL,
  xlab = NULL,
  ylab = NULL,
  acol,
  alpha = 0.3,
  bg.col = "white"
)

Arguments

curve

Specify a custom curve (as data.frame). This will override the sample curve.

t

Y-axis values where to create intersections with the Laffer curve.

xmax

Numeric. Allows modifying the maximum X value for the default Laffer curve.

ymax

Numeric. Allows modifying the maximum Y value for the default Laffer curve.

pointcol

Color of the point that represents the optimum point.

generic

Boolean. If TRUE and x is specified, the axis labels shows generic names. If FALSE, the axis labels are the actual data of the axis that corresponds to the intersection points and the optimal point.

showmax

If TRUE, shows the optimal point.

main

Main title of the plot.

sub

Subtitle of the plot.

xlab

Name of the X-axis.

ylab

Name of the Y-axis.

acol

Color of the area of the curve.

alpha

Transparency of the colored area.

bg.col

Background color of the plot.


R-CoderDotCom/econocharts documentation built on Oct. 16, 2021, 12:42 p.m.