joshuaulrich / joshuaulrich/quantmod
chart_Series candlesticks cutting off title and Y-axis for short timeseries
Open
- Dominant language
- R
- Stars
- 906
- Forks
- 233
- PR merge metrics
- No merged PRs in 30d
Description
Title (or 'name') and right-side Y-axis labels are trimmed when timeseries are shorter than ~10 days.
```
library(quantmod)
getSymbols('IBM', from=Sys.Date()-15)
chart_Series(tail(IBM,7)) # << change the number to see trimming effect
````
It's even more pronounced in the Rstudio Zoom display.
If the cause is candlestick width made proportional to the number of days, then limiting the width to max 1/15 of X-axis length could fix it.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.