joshuaulrich / joshuaulrich/quantmod

document x-axis customization

Open
#262 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
R
Stars
906
Forks
233
PR merge metrics
No merged PRs in 30d

Description

### Description
The x-axis has data labels on both the top and the bottom which looks a bit cluttered.

### Expected behavior
It should be easy to customize the x-axis, please create documentation for.

1. removing/enabling the top label [DONE] `coarse.time=TRUE||FALSE`
2. removing/enabling the bottom label without extra whitespace remaining [WORKAROUND] `format.labels <- ' '`
3. removing/enabling tick marks for top x-axis
4. removing/enabling tick marks for bottom x-axis

### Minimal, reproducible example

```r
### basic
getSymbols("GM")
chart_Series(GM, subset='2012::2019')
```
![gm](https://user-images.githubusercontent.com/4889925/51446981-f96c2b80-1ccd-11e9-933d-f4c9d0b1c576.png)

```r
### blanking bottom label, though the whitespace still persists
getSymbols("GM")
ct <- chart_theme()
ct$format.labels <- ' '
chart_Series(GM, subset='2012::2019', theme=ct)
```
![gm_bottom_label](https://user-images.githubusercontent.com/4889925/51447057-db52fb00-1cce-11e9-9262-e2699026e959.png)

```r
getSymbols("GM")
ct <- chart_theme()
ct$coarse.time <- FALSE ### removes the label above the x-axis
chart_Series(GM, subset='2012::2019', theme=ct)
```
![gm_top_label_gone](https://user-images.githubusercontent.com/4889925/51447387-80230780-1cd2-11e9-852c-d826743cdb8b.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the chart_Series() and chart_theme() examples in the issue, using coarse.time and format.labels as the documented settings. Check how top and bottom labels and tick marks are currently controlled, then document each option, including removal without leftover whitespace. Done means the four requested customizations have clear, working examples.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
data-visualization
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.