Comments (4)
No worries; everything is COVID-19 atm. I'll add some documentation and submit a pull request.
And congrats on the new job!
from gettbinr.
Would adjusting the aspect ratio and increasing the font size be enough?
If so something like
library(ggplot2)
library(getTBinR)
plot <- getTBinR::plot_tb_burden_summary(countries = "United Kingdom",
compare_all_regions = FALSE,
compare_to_region = TRUE)
for_presentation <- function(plot, aspect_ratio = 0.5, font_increase = 1.5, ...){
plot <- plot + theme(aspect.ratio = aspect_ratio)
plot <- plot + theme(text = element_text(size = plot$theme$text$size * font_increase))
return(plot)
}
plot # Original
presentation(plot) # After adjustments
should work (or the changes to theme
could be incorporated in the plot functions cf. the suggested TRUE/FALSE
argument)
from gettbinr.
This is a nice solution. I like the separate wrapper function idea.
FYI the CRAN update including your changes is ready but has been delayed by the COVID outbreak (my new job is outbreak forecasting and it turns out that makes this a busy time).
Hopefully will be able to push forward soon on this.
from gettbinr.
Have submitted #97
from gettbinr.
Related Issues (20)
- Expand the feature set of the shiny app.
- Fix budget dataset HOT 1
- summarise_tb_burden errors with no confidence intervals when estimating rates HOT 2
- Move to using ggplot2 in package best practises HOT 2
- Rmarkdown not installed by run_tb_dashboard but needed to render the TB report. HOT 1
- render_tb_report failing to produce a document. HOT 1
- Make an S3 plot and summary method for TB data (using autoplot)
- {plotly} labels are non-informative due to {ggplot2} update
- Label for `plot_tb_burden_summary` needs to update when incidence has been estimated.
- Add allowed words via the spell checking package HOT 1
- Density dots for mapping
- Label data at the end of lines
- Implement WHO theme HOT 2
- Improve automated handling of legends. HOT 1
- Improve `map_tb_burden`
- Implement automatic styling using {styler} HOT 1
- Use cases vignette
- Switch {tidyverse} suggests to only key packages. HOT 1
- Global TB incidence by HIV status, without error bars
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 gettbinr.