powered by
Analyze each variable in respect to a time variable
timebased(data_analyze, date_variable, time_unit = "auto", nvals_num_to_cat = 2, outdir)
a data frame to analyze
the variable (length one character vector or bare expression) that will be used to pivot all other variables
the time unit to use if not automatically
numeric numeric values with this many or fewer distinct values will be treated as categorical
an optional output directory to save the resulting plots as png images
# NOT RUN { library(xray) data(longley) longley$Year=as.Date(paste0(longley$Year,'-01-01')) timebased(longley, 'Year') # }
Run the code above in your browser using DataLab