Comments (3)
Try adding fun.aggregate
:
tm <- treemap(mock, index = c("Country", "Industry"), vSize = "GDP", vColor = "Growth",
type = "value", palette = "Spectral",
fun.aggregate="weighted.mean")
d3tree2(tm, rootname = "World")
from d3treer.
Thanks @ignacio82. @ellisp treemap was not originally designed for this since colors only appear at the lowest level. Fortunately @mtennekes quickly added in mtennekes/treemap#18. Would love feedback.
from d3treer.
Perfect, exactly what I was looking for, thanks all.
from d3treer.
Related Issues (20)
- Can Treemap options be maintained after rendering d3tree3 HOT 6
- height and width setting in d3tree or d3tree2 not working in shiny HOT 2
- cant install the library HOT 3
- package d3treeR not available HOT 10
- Treemap as input for reactive variable/function? HOT 4
- Interactive treemaps in loop (d3treeR) HOT 3
- Treemap isnt displayed HOT 1
- update to d3v5 HOT 1
- d3tree doesn't render HOT 5
- CRAN Any plan? HOT 17
- New Line in Group Name HOT 1
- Disable top right number and grey bar HOT 4
- tooltip help HOT 1
- d3TreeR not working in R version 3.5.3 HOT 2
- d3tree2 is not collapsing back when rootname is clicked HOT 3
- conflict between d3treeR and forceNetwork
- Can clickActions be set to follow a URL?
- xml error?
- R v4.0 HOT 1
- Cannot download this awesome package for R version 4.1 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 d3treer.