Description Usage Arguments Value Examples
View source: R/Line_RangePlot.R
Line range plot function with 'ggplot2' Function for plotting a line range function using the 'ggplot2' package. This function includes an x-axis label rotation at -45 degrees for easy x-axis reading.
1 | line_range_plot(butterfly, ButterflySpecies, SpringTemp, SummerTemp)
|
data |
A data frame. |
x_axis |
The column in the data frame to be plotted on the x-axis of the graph. |
y-min |
The column in the data frame to be plotted with the y-max data. |
y-max |
The column in the data frame to be plotted with the y-min data. |
The line range plot of the selected data.
1 2 3 4 5 6 7 8 9 10 | ants %>%
change_na_rm("None") %>%
line_range_plot(Tribe, min_ma, max_ma) +
labs(y = "Age (in Ma)")
butterfly %>%
line_range_plot(ButterflySpecies, SpringTemp, SummerTemp) +
geom_linerange(size = 1) +
aes(color = Day) +
labs(x = "Butterfly Species",
y = "Spring and Summer Temperature Range")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.