This is some text with a Footnote1. This is a second Footnote2.
Key Reference: RMarkdown - The Definitive Guide
PDF Printing Setup: tinytex
# Import stock prices
stocks <- tq_get(c("TSLA", "AMZN"),
get = "stock.prices",
from = "2019-01-01",
to = "2025-09-13")
stocks
Plotting works as expected. Try changing:
out.height
, out.width
and KnittingStatic plots:
Revenue by Category
Interactive plots:
ggplotly()
.Static Tables:
knitr
package - knitr::kable()
- Simple to
use, great with PDFsymbol | date | open | high | low | close | volume | adjusted |
---|---|---|---|---|---|---|---|
TSLA | 2019-01-02 | 20.40667 | 21.00867 | 19.92000 | 20.67467 | 174879000 | 20.67467 |
TSLA | 2019-01-03 | 20.46667 | 20.62667 | 19.82533 | 20.02400 | 104478000 | 20.02400 |
TSLA | 2019-01-04 | 20.40000 | 21.20000 | 20.18200 | 21.17933 | 110911500 | 21.17933 |
TSLA | 2019-01-07 | 21.44800 | 22.44933 | 21.18333 | 22.33067 | 113268000 | 22.33067 |
TSLA | 2019-01-08 | 22.79733 | 22.93400 | 21.80133 | 22.35667 | 105127500 | 22.35667 |
TSLA | 2019-01-09 | 22.36667 | 22.90000 | 22.09800 | 22.56867 | 81493500 | 22.56867 |
Dynamic Tables: