Summary
This document explores two classic built-in R datasets,
pressure and cars, to demonstrate basic data
visualization and tabular summarization in R Markdown. The
pressure dataset shows the relationship between temperature
and vapor pressure of mercury, while cars records stopping
distances for vehicles at various speeds. Together, these examples
highlight how R Markdown can combine narrative text, code, and output
into a single reproducible report. The document is styled using the
prettydoc package for a cleaner visual theme.
Key Points
- Uses the built-in
pressuredataset to create a scatter plot - Displays the top 6 rows of the
carsdataset as a table - Styled with the
prettydoc“cayman” theme instead of the default look - Fully reproducible — all output is generated directly from R code chunks