Skip to contents

ggplot wrappers

Quickly generate standardized plots

ggcalendar() cal_month_border() cal_label()
Calendar time series plot with tiles
ggdiurnal()
ggplot2-wrapper to summarise and plot data (of rOstluft::format_rolf() format) for diurnal time course-stats
ggdiurnal_weekend()
ggplot2-wrapper to summarise and plot data (of rOstluft::format_rolf() format) for diurnal time course-stats including weekend-effect
ggdiurnal_weekend_diff()
ggplot2-wrapper to summarise and plot data (of rOstluft::format_rolf() format) for one diurnal time course-stat plotted as difference between weekdays - weekend
ggpolarfreq()
ggplot2 wrapper to to plot wind speed/direction frequencies and other statistics
ggpolarplot()
ggplot2 wrapper to create a wind-based polar plot with cartesian coords
ggradar()
ggplot2-wrapper to summarise and plot data by wind direction bins as radar plot
ggtraj()
Plotting hysplit trajectory
ggweekend()
ggplot2-wrapper to summarise and plot data (of rOstluft::format_rolf() format) as boxplots comparing weekdays to weekends
ggwindrose()
ggplot wrapper to create a windrose (polar wind-bin frequency plot)
ggwindrose2()
ggplot wrapper to create a windrose with calm support (polar wind-bin frequency plot)
ggyearday()
ggplot2 heatmap for diurnal-yearly time series
gg_timevariation() gg_timevariation_wday_hour() gg_timevariation_wday() gg_timevariation_month() gg_timevariation_diurnal()
Plot time variations

Layer: stats

Statistical transformation of input data. The computed variables can be mapped using stat()

geom_bar_wind() stat_summary_wind()
Summarise z values over binned wind data.
stat_filter()
Filtering data
stat_summary_wind_2d()
Summarise z values over binned wind data.
summary_wind()
Summarise z values over binned wind data.
summary_wind_2d()
Summarise y values over binned wind data, split into u and v components.
summary_periodic()
Summarise a rOstluft::format_rolf() dataset over periodic (diurnal, weekday, etc) factors implicitly created by cut_timeseries_periodic() using various stat functions.

Layer: geoms

geometric objects for ggplot

geom_bar_wind() stat_summary_wind()
Summarise z values over binned wind data.
geom_polar_raster()
Background Raster for polar plots

Coordinate systems

Wind data is often displayed in polar coordinate system. The default functionality in ggplot is to limitited

coord_cartpolar()
cartesian coordinate system with polar grid lines
coord_polar2()
Customized coord_polar
coord_radar()
Polar coordinate system without munching

scales

Scales control the details of how data values are translated to visual properties. Override the default scales to tweak details like the axis labels or legend keys, or to use a completely different translation from data to aesthetic.

scale_fill_viridis_squished() scale_color_viridis_squished() scale_fill_gradientn_squished() scale_color_gradientn_squished()
squish outliers or extreme values in scales
format_sprintf()
Wrapper for sprintf string formatting
recode_last_class_label()
recode highest [x-y)-style factor level to yield '>y'
midpoints()
returns class midpoint-values for [x-y)-style factor level

map functions

functions to create background maps

get_stadia_map()
Wrapper around ggmap::get_stadiamap()
get_google_map()
Wrapper around ggmap::get_googlemap
bbox_lv95()
bbox in WSG84 from LV95
get_ggmap()
Wrapper to load a ggmap

cut functions

wrappers and partial functions to cut data

cut_daylight()
Cut a POSIXct Vector into daylight (day, night)
cut_interval.fun() cut_number.fun() cut_width.fun()
Partial function constructor for ggplot2 cut functions
cut_season.fun()
Partial function constructor for cut_season
cut_season()
Cut date-time vectors into seasons
cut_seasonyear.fun()
Partial function constructor for cut_season
cut_seasonyear()
Cut seasons, keep years together
cut_timeseries_periodic()
Cut a tibble with a datetime column
cut_time_of_day()
Cut a POSIXct Vector into time of day (HH:MM)
cut_wd.fun()
Partial function constructor to cut wind direction into factor classes
cut_wd()
Cut wind direction into factor classes
cut_weekend()
Cut a POSIXct Vector into weekday and weekend
cut_ws.fun()
Partial function constructor to cut wind velocity (or others) into factor classes
cut_ws()
Cut wind velocity (or others) into factor classes

utility functions

Some functions to make the life of a programmer easier

squished_labels()
generates labels for squished scales
uv2wd()
calculate wind direction from u, v wind components
fit_gam_surface()
Fits a smooth surface to x, y, z data using generalised additive models
bbox()
set up a bounding box for ggmap::get_map()
element_render_circle()
renders a circle as element_line
pad_to_year()
Pads data to complete year
pad_to_year_fill()
Pads data to complete year and fill up specific columns
grp()
Pass grouping definitions into functions
auto_name()
Ensure that all elements of a list of expressions are named
theme_rop_traj() theme_rop_polarplot() theme_rop_radar() theme_rop_windrose() theme_rop_diuarnal()
themes for rOstluft plots

Defunct

Objects marked as Defunct

get_stamen_map()
Defunct Functions in Package rOstluft.plot