line_range_plot: Line range plot function with 'ggplot2' Function for plotting...

Description Usage Arguments Value Examples

View source: R/Line_RangePlot.R

Description

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.

Usage

1
line_range_plot(butterfly, ButterflySpecies, SpringTemp, SummerTemp)

Arguments

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.

Value

The line range plot of the selected data.

Examples

 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") 

kateparrish9887/R_package_Parrish documentation built on Dec. 21, 2021, 5:20 a.m.