Graphics in R Flashcards
This is often conceptually simpler and allows plotting to mirror the thought process.
Base Graphics
This combines the concepts from both base and lattice graphics but uses an independent implementation.
ggplot2
In base graphics, we can see the history of a data by using what function?
hist
We use this function to make the data more appealing
colors
In plotting data, what function do we need to use?
plot
What is the syntax of plot?
plot(x = <x>, y = <y>)</y></x>
This code is used as a plotting symbol
pch
the line width, specified as an integer multiple
lwd
the plotting color,Specified as a number, string, or hex code.
col
character string for the x-axis.
xlab
character string for the y-axis.
ylab
This code is used for the line type (default as solid line).
lty
This function is used to specify global graphics parameters that affects all plots in an R session.
par
Number of plots per row (plots are filled row-wise)
mfrow
Number of plots per row(plots are filled column-wise)
mfcol