mxplot: mxplot

Description Usage Arguments Value

View source: R/mxplot.R

Description

Plot multiple xts objects by row. Auto align the range of xlim of all plots. Show the latest value of xts objects.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
mxplot(..., use_one_x_axis = TRUE, theme = theme_bw(), titles = NULL,
  heights = NULL, size = 0.8, end_spacing = 0.1, vlines = NULL,
  vlines_color = "gray50")

## S3 method for class 'gg'
mxplot(..., use_one_x_axis = TRUE, theme = theme_bw(),
  titles = NULL, heights = NULL, size = 0.8, end_spacing = 0.1,
  vlines = NULL, vlines_color = "gray50")

## S3 method for class 'xts'
mxplot(..., use_one_x_axis = T, theme = theme_bw(),
  titles = NULL, heights = NULL, size = 0.8, end_spacing = 0.1,
  vlines = NULL, vlines_color = "gray50")

## S3 method for class 'list'
mxplot(..., use_one_x_axis = T, theme = theme_bw(),
  titles = NULL, heights = NULL, size = 0.8, end_spacing = 0.1,
  vlines = NULL, vlines_color = "gray50")

Arguments

...

xts or ggplot objects, or a list of ggplot objects. If it's a list, only the 1st item works.

use_one_x_axis

if true then remove the x-axis of plots but the last

theme

the theme to apply

titles

a vector of titles.

heights

the weight of the height of plots, eg. heights = c(2,1)

size

line width

end_spacing

extend the space at the end of plot, as a percentage of the size of xlim().

vlines

add multiple geom_vline(). eg vlines = c("2000-01-05","2000-01-13").

vlines_color

color of vlines

Value

an egg object.


itsaquestion/MxPlot documentation built on Nov. 4, 2019, 2:13 p.m.