1/34
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
ggplot()
Initializes a ggplot object, typically followed by aes() and geom_*() layers.
aes()
Defines aesthetic mappings, such as x and y variables, color, shape, size.
geom_boxplot()
Creates a boxplot to visualize the distribution and outliers of numerical data.
geom_point()
Creates a scatterplot for visualizing relationships between two numerical variables.
geom_histogram()
Creates a histogram to show the distribution of a single numerical variable.
geom_smooth()
Adds a smoothed conditional mean line, such as a LOESS or linear regression curve.
geom_line()
Creates a line chart, typically used for time series data.
labs()
Adds labels for title, axis labels, and legend.
theme_minimal()
Applies a clean, minimalistic theme to the plot.
theme()
Customizes various aspects of the plot, such as text size, legend position, and axis appearance.
scale_x_continuous()
Adjusts the x-axis scale, setting breaks, labels, or limits.
scale_color_manual()
Manually sets colors for different groups in a plot.
glimpse()
Provides a compact summary of a dataframe’s structure.
nrow()
Returns the number of rows in a dataframe.
ncol()
Returns the number of columns in a dataframe.
dim()
Returns both the number of rows and columns in a dataframe.
slice_head()
Returns the first n rows of a dataframe.
filter()
Filters rows based on a condition.
arrange()
Sorts rows by one or more columns.
relocate()
Moves selected columns to a new position in the dataframe.
if_else()
A vectorized conditional function returning values based on a condition.
case_when()
A more flexible conditional function for multiple conditions.
count()
Counts occurrences of values in a column.
group_by()
Groups data for grouped operations.
ungroup()
Removes grouping from a dataframe.
read_csv()
Reads a CSV file into a dataframe.
separate()
Splits a column into multiple columns based on a delimiter.
mutate()
Creates or modifies columns.
summarize()
Aggregates data based on a function like mean, sum, or count.
pivot_longer()
Converts multiple columns into two columns: one for column names and one for values.
pivot_wider()
Converts key-value pairs into multiple columns.
left_join()
Merges two dataframes, keeping all rows from the left dataframe.
inner_join()
Merges two dataframes, keeping only rows that appear in both.
right_join()
Merges two dataframes, keeping all rows from the right dataframe.
full_join()
Merges two dataframes, keeping all rows from both.