Extracts an anonymised version of serverside data which can be used to create bespoke plots
Source:R/get-anon-plot-data.R
dh.getAnonPlotData.Rd
Whilst DataSHIELD has basic plotting functionality, for publications you may need more flexiblity in creating plots. This function calls server-side functions which create an anonymised copy of the data, and returns this data in a client-side object. These values can then be used to create plots (e.g with ggplot2).
Arguments
- df
Character specifying a server-side data frame.
- var_1
Character giving the name of a column within
df
for which to extract anonymised data.- var_2
Optionally, character specifying a second column within
df
. If a column is specified then scatter plot data will be returned withvar_1
as the explanatory variable andvar_2
as the outcome variable. Default is NULL which returns anonymised data only forvar_1
.- conns
DataSHIELD connections object.
- checks
Logical; if TRUE checks are performed prior to running the function. Default is TRUE.