Skip to content

Commit

Permalink
Trigger error when autoplot both both
Browse files Browse the repository at this point in the history
  • Loading branch information
FinYang committed Mar 7, 2024
1 parent 829f33f commit a3cd29c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/autoplot.R
Expand Up @@ -41,6 +41,8 @@ autoplot.ycevo <- function(
call. = FALSE
)
}
if(est == "both")
stop("\"est\" must be one of \"discount\" or \"yield\" when when \"against = \"both\"\".")
plotly::plot_ly(df_plot,
x = ~tau, y = ~qdate, z = ~.value,
type = 'scatter3d', mode = 'lines',
Expand Down

0 comments on commit a3cd29c

Please sign in to comment.