- a mapping of data values to chart properties.
- input to a
function
.
# in GGPlot2 the first argument to the ggplot command is usually a dataframe
p = ggplot(df)
- code invoked by a specific command name. Takes
arguments
as input.
# You can "write" text as output using the print function. The argument will be written as output.
print("This will be written to your output.")
- the way, we write code, i.e. the grammer.