This geom (geomtimelinelabel) subsets the data to values between xmin and xmax using the filter_ function from the dplyr package (
If applicable the data is grouped by the y variable using the group_by_ function from the dplyr package (
The top n_max values of the size variable are kept for each group (if applicable) using the top_n function from the dplyr package (
The data is ungrouped (if applicable) using the ungroup function from the dplyr package (
The line elements of the graph are created using the polylineGrob function from the grid package (
The text elements of the graph are created using the textGrob function from the grid package (
The line and text elements are plotted together using the gList function from the grid package (
Returns a timeline label showing information regarding eathquake sizes, intensities, and locations between specified dates.
Required_aes A character vector of aesthetics needed to render the geom; Date field - x, lowest date to include - xmin.
Highest date to include - xmax, variable holding labels - label.
Default_aes A list generated by aes() of default values for aesthetics; Group variable where separate timelines should be created for each unique value - y.
Variable where values distinguished by point size - size.
Setup_data Called once for each layer, after setp_params(); Returns modified data between specified dates.
Draw_key Renders a single legend key.
Draw_panel Function to transform the data to appropriate graphing coordinate system.
Not a user facing element of package.
An object of class
geomtimelinelabel (inherits from
ggproto) of length 6.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.