Skip to content
Prev 15259 / 15274 Next

Custom theme with quantmod library

On Thu, 15 Jan 2026, Enrico Schumann writes:
What happens when you send the graphic to a PDF, e.g.:

    pdf("some-file-name.pdf")
    library("quantmod")
    getSymbols("AAPL")
    
    chartSeries(
        AAPL,
        type = "candlestick",
        subset = '2025-07::2026-01',
        theme = chartTheme("black",
                           up.col = "blue"))
    dev.off()

Does the colour show up?