Plotting Visit Timelines
plotting_visit_timelines.RmdThis is a vignette to introduce the
plot_visit_timeline() function.
Setup
data_set = load_data_set(data_path)#> Warning: Neither GITHUB_ACTIONS_ACCESS_TOKEN, BIGQUERY_CREDENTIAL_PATH, nor PICNIC_USER_GMAIL_ADDRESS
#> • are configured as enviornmental variables.
#> • Please run `usethis::edit_r_environ()` and add one to your .Renviron.
#> • (Only use BIGQUERY_CREDENTIAL_PATH for a service account token.)
#> Neither GITHUB_ACTIONS_ACCESS_TOKEN, BIGQUERY_CREDENTIAL_PATH, nor PICNIC_USER_GMAIL_ADDRESS
#> • are configured as enviornmental variables.
#> • Please run `usethis::edit_r_environ()` and add one to your .Renviron.
#> • (Only use BIGQUERY_CREDENTIAL_PATH for a service account token.)
#> Neither GITHUB_ACTIONS_ACCESS_TOKEN, BIGQUERY_CREDENTIAL_PATH, nor PICNIC_USER_GMAIL_ADDRESS
#> • are configured as enviornmental variables.
#> • Please run `usethis::edit_r_environ()` and add one to your .Renviron.
#> • (Only use BIGQUERY_CREDENTIAL_PATH for a service account token.)
#> Warning in as.integer.integer64(x): NAs produced by integer overflow
Clinical Document Timeline
Specify person_id of interest
person_id = data_set$person$person_id[2]Call the plot_visit_timeline function on the export
plot_visit_timeline(data_set, person_id)
#> Warning: Using `size` aesthetic for lines was deprecated in ggplot2 3.4.0.
#> ℹ Please use `linewidth` instead.
#> ℹ The deprecated feature was likely used in the PicnicHealth package.
#> Please report the issue to the authors.
#> This warning is displayed once per session.
#> Call `lifecycle::last_lifecycle_warnings()` to see where this warning was
#> generated.