insightsengineering / insightsengineering/teal.goshawk

Line plot module: control symbol size

Open
#238 5 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
R
Stars
3
Forks
3
Avg merge
2d 6h
Merged PRs (30d)
11

Description

### Feature description

stakeholders report that it is difficult to easily see the difference between the line plot lines when using a splitting variable. there are number of reasons for this. here are three ideas to help address. suggested order is hopefully simplest to more complicated. happy to hop on a call to discuss further and goshawk function would need updated but didn't open and issue in that package.

1. Lines within a treatment arm are the same color and the same type. here's an example from the sample app filtering to only one treatment group and choosing SEX as the line splitting variable
![image](https://github.com/insightsengineering/teal.goshawk/assets/40777373/78b85bf5-0841-4915-abbe-fb5b97976823)

Feature: would it be straight forward to include a UI element like what is in boxplot to increase the size of the line plot symbols?
![image](https://github.com/insightsengineering/teal.goshawk/assets/40777373/80246c20-d60f-4514-bad6-ec461cc91ded)

2. Another idea to help differentiate within the line splitting context was to be able to set different line color within a treatment group. currently the line color and type selector functions within a treatment group.
![image](https://github.com/insightsengineering/teal.goshawk/assets/40777373/c9b06bb8-f8ca-4e3c-bc56-38fd8d063e3a)

Feature: I fear this would be quite complicated to add a nested line color and type selector within the treatment group value to control the split line aesthetics.

3. Another idea was to have the line type set automatically when a splitting variable is chosen. currently the line type is set to solid but this can be changed manually. however we observed when setting different line type it doesn't look like that is reflected in the legend. maybe the legend symbol/line is not big enough to show the line type.
![image](https://github.com/insightsengineering/teal.goshawk/assets/40777373/8dcad758-60db-4da4-9621-6bbb3dd19312)

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct.

### Contribution Guidelines

- [X] I agree to follow this project's Contribution Guidelines.

### Security Policy

- [X] I agree to follow this project's Security Policy.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.