Skip to content

Added new 'add_border' arg for adding outline to line-shapes & corrected color mapping logic#58

Open
erstearns wants to merge 11 commits intogiocomai:masterfrom
erstearns:main
Open

Added new 'add_border' arg for adding outline to line-shapes & corrected color mapping logic#58
erstearns wants to merge 11 commits intogiocomai:masterfrom
erstearns:main

Conversation

@erstearns
Copy link

New boolean arg: 'add_border' allows user to add a gray border around each line. This is very helpful if you have a palette with light colors as it makes them pop a bit more against the background and thus easier to see. In reality, this is another ggplot2 segment layer with a width of 1 + size_activity and colored gray. Future improvements could include the addition of args for setting this 'outline' layer width and color.

Also found and corrected an error early in the function that checks whether the user has the same number of colors in their palette as they do unique values of 'wp'. The error did not affect functionality, just message back to the user was note correct.

erstearns added 11 commits June 28, 2024 14:18
…e arg and set palette to correct number of unique vals and changed names to match unique vals of colour_by arg
…g is doing and also added order_by arg to function and testing as i go
Color mapping & legend & ordering
Color mapping & order & legend
…hape 1 width unit larger than the original line
added new arg to allow user to add borders to lines by creating new s…
Adding new arg 'add_border' to allow user to add border around each line
found error in code to check number of colors in pal against number o…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant