The qg2
function allows quickly drawing plots from different types of objects. If you want to reproduce these but have more control on the chart (color, etc.) then please see the recipes vignette vignettes.
library(quantmod)
aapl <- getSymbols("AAPL", env = NULL)
aapl %>%
head(50) %>%
qg2()
correl_mat <- cor(mtcars)
qg2(correl_mat) %>%
gauge_color(c("#c77dff", "#7b2cbf", "#240046"))
g <- igraph::erdos.renyi.game(500, 2/500)
qg2(g)