-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EdgeColor option (or switchable type 'edge_bar', 'bar' for geom_bar) #44
Comments
Hi, thanks for the feedback! I indeed have to make the way to interact these objects more uniform... |
As for common ways to set options, I have something like that in geom_label() in order customize text colors... What do you think about it? |
Oh, I see you have 'auto' options in geom_label for some options. That's nice indeed. If you also add a 'FaceColor' option which is default set to 'auto' you would have full customization for the bars. You could even make empty faces and only plot the lines, with a 'none' input for the FaceColor. |
Nice result! You are welcome to do a pull request. Two things off the top of my head:
Anyway I'm taking holidays so there is time to fine tune everything :) |
Ha, great advice and I was already incorporating it myself. I removed the plotci dependency, perhaps that dependency should actually be inverted, but I'll not touch that. I'm also taking a holiday next week, but I'll see what I can do :) |
Alright, the above stacking issue is a bit more complex, and should probably become a separate issue. It's related to how you determine the height of the stack, using the dodge_x and the x position and the obj.firstrun, which in this particular case seems insufficient information to separate the stacks. This is thanks to my color group input being the same as x, which makes GRAMM cycle over all elements separately. I will make a pull request of the original enhancement suggestion. |
I created a different issue on the stacked bars by copying your comments. Good catch, stacked bars can be surprisingly tricky. |
First of all: great toolbox, I love the possible customizations so far!
One thing I was trying to do is plot bars without a black edge using geom_bar. I noticed there are actually two bar types:
'bar'
and'edge_bar'
, the latter being called by geom_bar. The'bar'
hasEdgeColor = 'none'
, but I cannot call it with geom_bar yet. Or am I not seeing an option or geometry somewhere?I could solve this myself with a user input into geom_bar, for example
'edge'
, with a true/false setting. This than changes the input geom to plotci from edge_bar to bar, respectively (or internally changes the EdgeColor for stacked bars).However, a generalization of this to other geometries could be to set the EdgeColor directly via the draw_data structure, for example for area's. But I don't know if that's valuable to anyone. Perhaps someone wants a black background with white edges? And I don't see an obvious set_xxx_options function for this.
The text was updated successfully, but these errors were encountered: