Description Usage Arguments Value
Plot multiple xts objects by row. Auto align the range of xlim of all plots. Show the latest value of xts objects.
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 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | mxplot(
...,
use_one_x_axis = TRUE,
theme = theme_textbook(),
titles = NULL,
heights = NULL,
size = 0.8,
end_spacing = 0.1,
vlines = NULL,
vlines_color = "gray50",
xfrom = NA,
xto = NA
)
## 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",
xfrom = NA,
xto = NA
)
## 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",
xfrom = NA,
xto = NA
)
## 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",
xfrom = NA,
xto = NA
)
|
... |
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 |
xfrom |
xfrom |
xto |
xto |
an egg object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.