Skip to main content
100%

Gist 398014c514cdad5254c8

✓ Published0🌍 Public
Aalanponce
Last edited Apr 24, 2015
Created on Jun 9, 2015

This example demonstrates how to create high-quality scatterplots using base R graphics, covering both basic and intermediate plotting techniques. It uses the built-in `trees` and `iris` datasets to show relationships between variables, including girth versus volume for black cherry trees and sepal length versus petal length for iris species. The code illustrates core R functions like `plot()`, `rep()`, `par()`, and `axis()`, with features such as custom point characters, colors, legends, best-fit lines, confidence intervals, and multipanel layouts.

AI-generated description

Similar vizzes