Skip to content

Commit

Permalink
docs: restrict date in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
m-muecke committed Jan 14, 2024
1 parent c2586c4 commit c5d38ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@ library(bundesbank)
yield_curve <- bb_data(
flow = "BBSIS",
key = "D.I.ZAR.ZI.EUR.S1311.B.A604.R10XX.R.A.A._Z._Z.A",
start_period = "2010-01-01"
start_period = "2020-01-01"
)
library(ggplot2)
yield_curve$date <- as.Date(yield_curve$date)
ggplot(yield_curve, aes(x = date, y = value)) +
geom_line() +
labs(x = "Date", y = "Yield", title = "10 year daily yield curve")
labs(x = "Date", y = "Yield")
```

## Related work
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@ library(bundesbank)
yield_curve <- bb_data(
flow = "BBSIS",
key = "D.I.ZAR.ZI.EUR.S1311.B.A604.R10XX.R.A.A._Z._Z.A",
start_period = "2010-01-01"
start_period = "2020-01-01"
)

library(ggplot2)

yield_curve$date <- as.Date(yield_curve$date)
ggplot(yield_curve, aes(x = date, y = value)) +
geom_line() +
labs(x = "Date", y = "Yield", title = "10 year daily yield curve")
labs(x = "Date", y = "Yield")
```

<img src="man/figures/README-demo-1.png" width="100%" />
Expand Down
Binary file modified man/figures/README-demo-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c5d38ab

Please sign in to comment.