R Plot: Basics
library(ggplot2) theme_set(theme_minimal()) # Demo dataset head(economics) # Basic line plot ggplot(data = economics, aes(x = date, y = pop))+ geom_line(color = "#00AFBB", size = 2) # Plot a subset of the data ss <- subset(economics, date > as.Date("2006-1-1")) ggplot(data = ss, aes(x = date, y = pop)) + geom_line(color = "#FC4E07", size = 2) # Control line size by the value of a continuous
| Penerbit | Taratsa |
|---|---|
| Tahun | 2019-11-28 |
| Bahasa | ind |
| Pengenal | bookid: urn:uuid:d1a35cf2-ef06-566c-9e4d-12dd1014c404 |