Closed dgkeyes closed 2 years ago
In terms of examples, we could go with CBEM, but the thing there is that they gave us the palette... and didn't use the plot where I followed the steps I'm outlining here to create an on-brand colour theme where more colours were required.
If you're open to using a non rfortherest plot, I think the most on-brand one I've done is this one about the weather in Edinburgh (it ties in with the Festival colour scheme / font / local colloquialisms...).
Which makes me think, do you want tips on using colours in text, or shall we save that for another post? My go-to for that is to use ggtext and the element_markdown() options in the theme settings.
This looks great, Cara.
My major piece of feedback is to keep the focus on colors and avoid everything else (fonts, labels, etc). Those are each big topics on their own and I don't want the main focus to be lost.
Let's really have the blog post focus as: You're working with an organization and here are their colors. How do you translate that into code that you can use in R to make graphs that reflect their color scheme? The meat of the post is about creating custom color scales so everything else should build up to that.
In terms of an example, I'm fine to have you use the one above. You can use that as an example and I'll also add links to several R for the Rest of Us projects where we've used organizations' brand colors. That will help, hopefully, to generate some additional consulting work.
The structure of this is taking shape and I have notes on the process I followed to determine the colibri colours, so I can use the code for that in the examples. Here's the proposed structure:
Tada, branded plot and color/fill scales you can apply to any plot within the project.
Sounds great! Onward ho!
I'm going you try to get this done today and tomorrow so I can take Friday off. Keep me right, do you want this in the first person ("here's how I approach things") or on behalf of the team ("here's what we did")?
Go ahead and do first person. I may edit later on but let's start with that.
I've just pushed a draft. I feel it's too long, but I'm going to wait for your feedback before tweaking it, so you can let me know where there's too much / not enough detail.
Just quick note to say I tweaked the code a bit in the scale_fill/color bit to make it easier to read than what we have in the real code in the package, which has extra functionalities we don't need for this post.
Ok, I've finished taking a pass editing this. Take a look here (you'll need to be logged in to access that) and let me know what you think.
Thanks for the edits - my PhD supervisors used to tell me my sentences were too long and this definitely feels more easy to read than the original.
Two things if I may:
Other than that, I'm happy for you to go ahead and publish it.
Oh and this is super vain of me, but any chance we could realign my profile pic with the one I'm using on Twitter? I can send you the file if you want or feel free to grab it from my profile.
Very happy to do so! Could you send it to me on Twist or by email?
Can you also point me to the right image for Step 3? Not sure what happened there.
Oh, and I updated the "one of our team members" sentence. I was going to do it third person starting out but then switched, but forgot to update that.
Can you also point me to the right image for Step 3? Not sure what happened there.
It should be generated by the code but I've exported it and emailed it to you just in case.
Here's a proposed outline:
Hook You've collected the data, performed all the analyses, figured out the best way to plot the main story... Next step: tie the look of the plot in with the topic so that readers react with "ooh, nice story about [x]" rather than "look, they used ggpplot!".
Overall concept In our consultancy work, we want the plots we create to blend in seamlessly with the bigger picture of what our clients want to communicate, A big part of that is choosing a colour palette that aligns with the colours used by the client.
Several other aspects to this, (covered elsewhere?)
How to
Choose colours
Use custom colour scales (the code bit)
Extra steps: accessibilty
Summary In following these steps, the plot becomes part of the bigger picture, rather than being a stand alone item - it helps the client tell the story rather than detracting from it.