Comments (3)
Hi! This seems more of an issue trying to customize the ggplot
object rather than using the library. Re the corr_cross()
function, we apply theme_lares()
by default to our plots so that all plot outputs have a consistent colour palette and theme. That said, once you have your object, you can customize the ggplot
object to follow your style needs.
from lares.
Hi, thanks for your response!
I found a solution which I'll just share here in case anyone else wants to fiddle around with colours like I do - it ended up being really simple to just use the following (from https://rdrr.io/github/laresbernardo/lares/man/gg_fill_customs.html):
options("lares.colours.custom" = data.frame(
values = c("positive", "negative"),
fill = c("postivecolourthatIwanted", "negativecolourthatIwanted"),
colour = c("black", "white")
))
With of course editing the the fill argument with whatever hex codes I desired. This had the added bonus of not producing any warnings like “Scale for ‘fill’ is already present. Adding another scale for ‘fill’, which will replace the existing scale.” You can do this for pretty much any colour in the theme depending on how that colour is retrieved - for corr_cross()
I only needed positive and negative, but you can access the full list for true/false, different social media or the full palette etc with lares_pal()
, all of which can be edited with variations of the code above.
Many thanks for building in these options for customisation!
from lares.
from lares.
Related Issues (20)
- corr_var for categorical variables? HOT 9
- link to "dummyPortfolio.xlsx" is dead HOT 1
- dplyr 1.0.8 HOT 1
- Can the target of categorical numeric variable to be treated as "regression" target HOT 3
- corr_cross plot incomplete HOT 4
- Is it possible to auto-compare different models? HOT 2
- Keep original row names when running h2o_automl HOT 4
- geom_text_repel() as substitution for geom_text() HOT 3
- Error in `dplyr::filter()`: HOT 6
- lares::holidays produces empty frame HOT 11
- Getting error in corr_varr HOT 2
- error due to h2o package HOT 2
- Problem installing the package HOT 2
- holidays(countries = "Italy", years = 2022) issue HOT 1
- Terminology: Independent or dependent variable? HOT 6
- Error in `combine_vars()`: ! Faceting variables must have at least one value HOT 4
- font_exist is false if ttf file in subdir HOT 6
- robyn_performance Error in if (totals) ret <- rbind(ret, totals_base, grand_total) : the condition has length > 1 HOT 6
- broken holidays function HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lares.