Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trajectory plot issue #53

Open
tmholmes opened this issue Apr 26, 2020 · 0 comments
Open

Trajectory plot issue #53

tmholmes opened this issue Apr 26, 2020 · 0 comments

Comments

@tmholmes
Copy link

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()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant