grafica_BoxPlot: BoxPlot

Description Usage Arguments Value Author(s) References

View source: R/grafica_BoxPlot.R

Description

The function "grafica_BoxPlot" create a BoxPlot for multiple series in a dataset

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
grafica_BoxPlot(
  df,
  x_axis,
  y_axis,
  color_bp = colores[2],
  color_outlier = "#FDFEFE",
  legend_position = "right",
  legend_title = "",
  x_t = "",
  y_t = "",
  y_position = "right",
  titulo = "",
  subtitulo = "",
  t_hjust = 0,
  s_hjust = 0,
  f_wrap = F,
  f_wrap_1,
  scales_fw = T,
  bigotes = F,
  prom = T,
  size_t = 9,
  size_s = 9,
  size_x_t = 7,
  size_y_t = 7,
  size_l = 7,
  size_lt = 7,
  size_x_axis = 9,
  size_y_axis = 9,
  font_t = "Calibri",
  font_s = "Calibri",
  font_l = "Calibri",
  font_x = "Calibri",
  font_y = "Calibri",
  font_lt = "Calibri",
  col_t = colores[12],
  col_s = colores[12],
  angle_x = 0,
  angle_y = 0,
  x_axis_tf = "plain",
  y_axis_tf = "plain",
  x_axis_f = "plain",
  y_axis_f = "plain",
  box_alpha = 1
)

Arguments

df

Default dataset to use for plot. If not already a data.frame, will be converted to one by fortify(). If not specified, must be supplied in each layer added to the plot.

x_axis

data of variable x

y_axis

variable to be plotted

color_bp

color of the BoxPlot from colores Banxico

color_outlier

outlier

legend_position

Position adjustment of the legend

legend_title

Legend title to graph, as character

x_t

x axis title to graph, as character

y_t

y axis title to graph, as character

y_position

Position of y axis, ie. ("right","left)

titulo

Title to graph, as character

subtitulo

Subtitle to graph, as character

t_hjust

Title position, values between [0,1]

s_hjust

Subtitle position, values between [0,1]

f_wrap

if f_wrap=T, then facet_wrap() function will be activate

f_wrap_1

variables to graph

scales_fw

scales of the variables graphed

bigotes

T

prom

If average = T, then the average of the data is calculated

size_t

title font size

size_s

subtitle font size

size_x_t

x-axis title font size

size_y_t

y-axis title font size

size_l

legend title font size

size_lt

legend text font size

size_x_axis

x-axis text font size

size_y_axis

x-axis text font size

font_t

title font style

font_s

subtitle font style

font_l

legend font style

font_x

x-axis font style

font_y

y-axis font style

font_lt

legend text font style

col_t

title color

col_s

subtitle color

angle_x

angle of x-axis text

angle_y

angle of y-axis text

x_axis_tf

title bold,plain, etc

y_axis_tf

subtitle bold,plain, etc

x_axis_f

bold,plain, etc

y_axis_f

bold,plain, etc

box_alpha

boxPlot opacity

Value

BoxPlot with Banxico format

Author(s)

Marcos Daniel Ramirez Santiago, danielrs98@outlook.com

References

Ggplot2: Elegant Graphics for Data Analysis


danielrs98/banxiplot documentation built on Feb. 5, 2022, 12:46 a.m.