Man pages for kylebutts/kfbmisc
Collection of Functions that I Find Useful

compile_tikzpictureWraps and compiles a tikzpicture
create_sparseCreate sparse matrix from triplet of coordinates and value
dist_haversineHaversine Distance
dist_spherical_cosineSpherical Distance
get_min_yearFrom an indicator for treatment, retrieve start year.
ggpreviewPreview output from 'ggsave()'
kyle_colorGet color from my palette by name
kyle_colorsSet of colors for graphics that I like
kyle_labelCustom default for 'label' annotation
kyle_textboxNice looking annotations using 'ggtext"
png_to_grobCreate image grob from png and output the width and height
print_rmdPrint Xaringan .Rmd/.html file using 'pagedown::chrome_print'
pt_to_mmConvert a numeric vector specified in pt to mm
rcpp_parallel_distm_CParallel calculates distance between two matrices of...
rcpp_parallel_distm_C_minFind closest unit from group y
rcpp_parallel_distm_C_min_nonselfFind nearest neighbor of x (non-self)
rcpp_parallel_nearest_facilityFind closest unit from group y and measure distance
rcpp_parallel_nearest_facility_nonselfFind nearest neighbor of x and measure distance (non-self)
scale_color_kyleColor scale for kyle colors
scale_fill_kyleFill scale for kyle colors
st_dist_rcppRcppParallel version of 'st_distance'
st_extract_withinExtract information from geometry that a point x falls in
st_geometry_to_lat_longConvert geometry column to 'longitude'/'latitude' columns
st_indicator_for_withinReturns an indicator vector for whether y contains a point of...
st_multiply_sgbpMultiplies a sparse geometry binary predicate object (e.g....
st_nearest_distance_rcppRcppParallel distance to nearest point
st_nearest_rcppRcppParallel version of 'st_nearest_feature'
tailwind_colorPass string of TailwindCSS color and get hex'
theme_kyleCustom ggplot2 theme
theme_mapRemove axis for maps
tikzsaveSave a tikzpicture and then compile to pdf
kylebutts/kfbmisc documentation built on April 17, 2025, 5:20 p.m.