Comments (4)
I'd be happy to take a stab at implementing this, what sort of option would you like to see, specifically? Would it maybe just be better to manually specify the breaks to be at even numbers using the breaks parameter?
from ggthemes.
The problem with setting the breaks to even numbers is it gets rid of the specific minimum/maximum of the Tufte Breaks.
I’ve been having a bit of a play, but am not really a proficient enough programmer to be able to implement this. I think that two things would be useful:
- Setting the number of significant figures for the tick labels - essentially just applying signif(,digits=x) to the output
- Having the option to apply prettyNum() to the output to get rid of the (ugly) trailing zeroes.
A.
On 13 Aug 2015, at 16:06, Brent Cohn [email protected] wrote:
I'd be happy to take a stab at implementing this, what sort of option would you like to see, specifically? Would it maybe just be better to manually specify the breaks to be at even numbers using the breaks parameter?
—
Reply to this email directly or view it on GitHub #42 (comment).
from ggthemes.
You can get smarter by passing the function smart_digits_format
to labels for the tufte scale (or any scale). It's in the package but I forgot to include any examples.
If you have this, the formatting of the labels is poor.
p <- ggplot(mtcars, aes(wt, mpg)) +
geom_point() +
geom_rangeframe() +
theme_tufte()
p + scale_x_tufte() + scale_y_tufte()
But, adding the option labels = smart_digits_format()
and it rounds the min/max labels to reasonable values.
p + scale_x_tufte(labels = smart_digits_format()) +
scale_y_tufte(labels = smart_digits_format())
from ggthemes.
I'm leaving this open to remind myself to
- Add smart_digits_format example
- Make
smart_digits_format
the default for the Tufte scales.
from ggthemes.
Related Issues (20)
- images in main page of pkgdown website are broken HOT 1
- Helpful: page with visualization of themes and names HOT 1
- Themes working with scatter3d.
- `theme_tufte` with `geom_rangeframe` doesn't work with `facet_wrap` HOT 2
- Problems with theme_economist HOT 1
- Not enogh colors on palette "gdocs" HOT 2
- base_family not working in theme_economist() and theme_excel()
- Allow Gradient Scales to Accept Midpoint Arg
- Images are broken on homepage HOT 5
- Plot with `theme_fivethirtyeight()` applied can't be further modified with `{ggplot2}` functions HOT 3
- extended_range_breaks - n= not respected
- images in package home page are broken HOT 2
- Installation fails @ R4.2.1 RHEL
- theme_fivethirtyeight() error on mac HOT 1
- Any alternatives? HOT 2
- Fix package alias
- Fix CRAN check errors HOT 2
- theme_excel_new() error HOT 1
- Handle shape pallettes with unicode symbols
- Remove appveyor
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 ggthemes.