rich-iannone / splitr

Use the HYSPLIT model from inside R and do more with it
Other
141 stars 60 forks source link

Trajectory plot issue #53

Open tmholmes opened 4 years ago

tmholmes commented 4 years ago

Hi Rich, I see this was a closed issue before, but I seem to be having problems with generating a plot using trajectory_plot() with either data frame or model object. No errors. R version 4.0.0, R studio 1.2.5042. Thanks in advance for your time. Code:

library(splitr) library(here)

trajectory_model <- create_trajectory_model() %>% add_trajectory_params( lat = 43.45, lon = -79.70, height = 50, duration = 6, days = "2015-07-01", daily_hours = c(0, 12), direction = "backward", met_type = "reanalysis", met_dir = here::here("met"), exec_dir = here::here("out") ) %>% run_model()

trajectory_tbl <- trajectory_model %>% get_output_tbl()

Plot results using the trajectory data frame

trajectory_tbl %>% trajectory_plot()

Plot results using the trajectory model object

trajectory_model %>% trajectory_plot()