SlideShare une entreprise Scribd logo
1  sur  19
5  Data-Applied.com: Tree Maps
What are Treemaps? Treemaps display hierarchical (tree-structured) data as a set of nested rectangles Each branch of the tree is given a rectangle, which is then tiled with smaller rectangles representing sub-branches  A leaf node's rectangle has an area proportional to a specified dimension on the data The leaf nodes are colored to show a separate dimension of the data
Standard Treemaps The standard Treemaps algorithm just did the transition from hierarchical data to its representation in the rectangular form An example:
Standard Treemaps pseudo code The tree-map algorithm assumes a tree structure in which each node contains a record with its directory or file name (name), the number of children (num_children), and an array of pointers to the next level (child [1..num_children]). The arguments to the tree-map algorithm are: root : a pointer to the root of the tree or subtree P, Q : arrays of length 2 with (x,y) coordinate pairs of opposite corners of the current rectangle (assume that Q contains the higher coordinates and P the lower coordinates, but this does not affect the correctness of the algorithm, only the order in which rectangles are drawn) axis : varies between 0 and 1 to indicate cuts to be made vertically and horizontally color: indicates the color to be used for the current rectangle.
Standard Treemaps pseudo code In addition we need: Paint_rectangle : a procedure that paints within the rectangle using a given color, and resets the color variable. Size : a function that returns the number of bytes in the node pointed to by the argument. Alternatively, the size could be pre-computed and stored in each node. The initial call is: Treemap(root, P, Q, 0, color)          Where P and Q are the upper right and lower left corners of the display. By setting the axis argument to zero the initial partitions are made vertically. It is assumed that arguments P and Q are passed by value (since P, Q are modified within
Standard Treemaps pseudo code Treemap(root, P[0..1], Q[0..1], axis, color) Paint_rectangle(P, Q, color) -- paint full area width := Q[axis] - P[axis] -- compute location of next slice 	for i := 1 to num_children do 		Q[axis] := P[axis] + (Size(child[i])/Size(root))*width Treemap(child[i], P, Q, 1 - axis, color) -- recur on each slice, flipping axes 		P[axis] := Q[axis]; endfor 
Problem with standard Treemaps Treemaps often fall short to visualize the structure of the tree Thin, elongated rectangles emerge as a result of the srtaight forward subdivision technique of standard treemaps         The second problem can be solved by using a modified version of standard treemaps algorithm called: “SquarifiedTreemaps”
SquarifiedTreemaps         Instead of rectangles, in this algorithm we try do reduce the aspect ratio as much as possible and hence squarifytreemaps. Reason being: Display space is used more efficiently. The number of pixels to be used for the border is proportional to its circumference. For rectangles this number is minimal if a square is used Square items are easier to detect and point at Comparison of the size of rectangles is easier when their aspect ratios are similar
Squarification in practice We initially start with a 6x4 rectangle and add areas 6,6,4,3,2,2,1 to it. At each addition we make sure we have the maximum aspect ratio By standard treemaps algorithm:
Squarification in practice With squarification:
Final layer to treemaps The squares can be colored to represent an extra dimensions The area/size can be represented using any parameter as per the requirement
Using the DA-API to execute treemaps
Using the DA-API to execute treemaps Again to use the API we just need to figure out the correct entity and the message type Looking at the specification the entity is RootTreeMapTaskInfo The task will be completed in a sequence of multiple messages, as specified on the website As the task is used for data visualization so it does not produce any type of result
Message sequence The steps are:
Treemaps using Data Applied’s web interface
Step1: Selection of data
Step2: Selecting Tree Maps
Step3: Result
Visit more self help tutorials ,[object Object]

Contenu connexe

Tendances

Data indexing presentation part 2
Data indexing presentation part 2Data indexing presentation part 2
Data indexing presentation part 2
Vivek Kantariya
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query Optimization
Ali Usman
 
How tochooserightchartforyourdata
How tochooserightchartforyourdataHow tochooserightchartforyourdata
How tochooserightchartforyourdata
TnTrnhL1
 

Tendances (18)

Graph Tea: Simulating Tool for Graph Theory & Algorithms
Graph Tea: Simulating Tool for Graph Theory & AlgorithmsGraph Tea: Simulating Tool for Graph Theory & Algorithms
Graph Tea: Simulating Tool for Graph Theory & Algorithms
 
Data cube
Data cubeData cube
Data cube
 
Clustering on database systems rkm
Clustering on database systems rkmClustering on database systems rkm
Clustering on database systems rkm
 
Declarations
DeclarationsDeclarations
Declarations
 
Data visualization using R
Data visualization using RData visualization using R
Data visualization using R
 
Spatial data mining
Spatial data miningSpatial data mining
Spatial data mining
 
data structures and algorithms Unit 2
data structures and algorithms Unit 2data structures and algorithms Unit 2
data structures and algorithms Unit 2
 
Data indexing presentation part 2
Data indexing presentation part 2Data indexing presentation part 2
Data indexing presentation part 2
 
WELCOME TO BIG DATA TRANING
WELCOME TO BIG DATA TRANINGWELCOME TO BIG DATA TRANING
WELCOME TO BIG DATA TRANING
 
Spatial Database Systems
Spatial Database SystemsSpatial Database Systems
Spatial Database Systems
 
presentation 2019 04_09_rev1
presentation 2019 04_09_rev1presentation 2019 04_09_rev1
presentation 2019 04_09_rev1
 
Machine Learning - Unsupervised Learning
Machine Learning - Unsupervised LearningMachine Learning - Unsupervised Learning
Machine Learning - Unsupervised Learning
 
Database , 8 Query Optimization
Database , 8 Query OptimizationDatabase , 8 Query Optimization
Database , 8 Query Optimization
 
Optics ordering points to identify the clustering structure
Optics ordering points to identify the clustering structureOptics ordering points to identify the clustering structure
Optics ordering points to identify the clustering structure
 
Spatial databases
Spatial databasesSpatial databases
Spatial databases
 
Clustering
ClusteringClustering
Clustering
 
How tochooserightchartforyourdata
How tochooserightchartforyourdataHow tochooserightchartforyourdata
How tochooserightchartforyourdata
 
An Efficient Method of Partitioning High Volumes of Multidimensional Data for...
An Efficient Method of Partitioning High Volumes of Multidimensional Data for...An Efficient Method of Partitioning High Volumes of Multidimensional Data for...
An Efficient Method of Partitioning High Volumes of Multidimensional Data for...
 

En vedette (8)

Data Applied: Forecast
Data Applied: ForecastData Applied: Forecast
Data Applied: Forecast
 
Data Applied:Similarity
Data Applied:SimilarityData Applied:Similarity
Data Applied:Similarity
 
Data Applied: Association
Data Applied: AssociationData Applied: Association
Data Applied: Association
 
Data Applied: Correlation
Data Applied: CorrelationData Applied: Correlation
Data Applied: Correlation
 
Data Applied:Outliers
Data Applied:OutliersData Applied:Outliers
Data Applied:Outliers
 
Data Applied: Decision
Data Applied: DecisionData Applied: Decision
Data Applied: Decision
 
Data Applied: Clustering
Data Applied: ClusteringData Applied: Clustering
Data Applied: Clustering
 
Data Applied:Tree Maps
Data Applied:Tree MapsData Applied:Tree Maps
Data Applied:Tree Maps
 

Similaire à Data Applied:Tree Maps

Background This course is all about data visualization. However, we.docx
Background This course is all about data visualization. However, we.docxBackground This course is all about data visualization. However, we.docx
Background This course is all about data visualization. However, we.docx
rosemaryralphs52525
 
Svm Presentation
Svm PresentationSvm Presentation
Svm Presentation
shahparin
 
Data Manipulation with Numpy and Pandas in PythonStarting with N
Data Manipulation with Numpy and Pandas in PythonStarting with NData Manipulation with Numpy and Pandas in PythonStarting with N
Data Manipulation with Numpy and Pandas in PythonStarting with N
OllieShoresna
 
pandas-221217084954-937bb582.pdf
pandas-221217084954-937bb582.pdfpandas-221217084954-937bb582.pdf
pandas-221217084954-937bb582.pdf
scorsam1
 

Similaire à Data Applied:Tree Maps (20)

How big-is-your-graph
How big-is-your-graphHow big-is-your-graph
How big-is-your-graph
 
Numpy ndarrays.pdf
Numpy ndarrays.pdfNumpy ndarrays.pdf
Numpy ndarrays.pdf
 
Background This course is all about data visualization. However, we.docx
Background This course is all about data visualization. However, we.docxBackground This course is all about data visualization. However, we.docx
Background This course is all about data visualization. However, we.docx
 
MATLAB
MATLABMATLAB
MATLAB
 
M tree
M treeM tree
M tree
 
Pandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheetPandas,scipy,numpy cheatsheet
Pandas,scipy,numpy cheatsheet
 
MapReduceAlgorithms.ppt
MapReduceAlgorithms.pptMapReduceAlgorithms.ppt
MapReduceAlgorithms.ppt
 
statistical computation using R- an intro..
statistical computation using R- an intro..statistical computation using R- an intro..
statistical computation using R- an intro..
 
Raster data analysis
Raster data analysisRaster data analysis
Raster data analysis
 
Chart and graphs in R programming language
Chart and graphs in R programming language Chart and graphs in R programming language
Chart and graphs in R programming language
 
How to combine interpolation and regression graphs in R
How to combine interpolation and regression graphs in RHow to combine interpolation and regression graphs in R
How to combine interpolation and regression graphs in R
 
Broom: Converting Statistical Models to Tidy Data Frames
Broom: Converting Statistical Models to Tidy Data FramesBroom: Converting Statistical Models to Tidy Data Frames
Broom: Converting Statistical Models to Tidy Data Frames
 
Svm Presentation
Svm PresentationSvm Presentation
Svm Presentation
 
Data Manipulation with Numpy and Pandas in PythonStarting with N
Data Manipulation with Numpy and Pandas in PythonStarting with NData Manipulation with Numpy and Pandas in PythonStarting with N
Data Manipulation with Numpy and Pandas in PythonStarting with N
 
Optimizing spatial database
Optimizing spatial databaseOptimizing spatial database
Optimizing spatial database
 
Clique and sting
Clique and stingClique and sting
Clique and sting
 
Pandas.pptx
Pandas.pptxPandas.pptx
Pandas.pptx
 
pandas-221217084954-937bb582.pdf
pandas-221217084954-937bb582.pdfpandas-221217084954-937bb582.pdf
pandas-221217084954-937bb582.pdf
 
MODULE III.pptx
MODULE III.pptxMODULE III.pptx
MODULE III.pptx
 
2.4 Scatterplots, correlation, and regression
2.4 Scatterplots, correlation, and regression2.4 Scatterplots, correlation, and regression
2.4 Scatterplots, correlation, and regression
 

Dernier

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Dernier (20)

Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 

Data Applied:Tree Maps

  • 2. What are Treemaps? Treemaps display hierarchical (tree-structured) data as a set of nested rectangles Each branch of the tree is given a rectangle, which is then tiled with smaller rectangles representing sub-branches  A leaf node's rectangle has an area proportional to a specified dimension on the data The leaf nodes are colored to show a separate dimension of the data
  • 3. Standard Treemaps The standard Treemaps algorithm just did the transition from hierarchical data to its representation in the rectangular form An example:
  • 4. Standard Treemaps pseudo code The tree-map algorithm assumes a tree structure in which each node contains a record with its directory or file name (name), the number of children (num_children), and an array of pointers to the next level (child [1..num_children]). The arguments to the tree-map algorithm are: root : a pointer to the root of the tree or subtree P, Q : arrays of length 2 with (x,y) coordinate pairs of opposite corners of the current rectangle (assume that Q contains the higher coordinates and P the lower coordinates, but this does not affect the correctness of the algorithm, only the order in which rectangles are drawn) axis : varies between 0 and 1 to indicate cuts to be made vertically and horizontally color: indicates the color to be used for the current rectangle.
  • 5. Standard Treemaps pseudo code In addition we need: Paint_rectangle : a procedure that paints within the rectangle using a given color, and resets the color variable. Size : a function that returns the number of bytes in the node pointed to by the argument. Alternatively, the size could be pre-computed and stored in each node. The initial call is: Treemap(root, P, Q, 0, color) Where P and Q are the upper right and lower left corners of the display. By setting the axis argument to zero the initial partitions are made vertically. It is assumed that arguments P and Q are passed by value (since P, Q are modified within
  • 6. Standard Treemaps pseudo code Treemap(root, P[0..1], Q[0..1], axis, color) Paint_rectangle(P, Q, color) -- paint full area width := Q[axis] - P[axis] -- compute location of next slice for i := 1 to num_children do Q[axis] := P[axis] + (Size(child[i])/Size(root))*width Treemap(child[i], P, Q, 1 - axis, color) -- recur on each slice, flipping axes P[axis] := Q[axis]; endfor 
  • 7. Problem with standard Treemaps Treemaps often fall short to visualize the structure of the tree Thin, elongated rectangles emerge as a result of the srtaight forward subdivision technique of standard treemaps The second problem can be solved by using a modified version of standard treemaps algorithm called: “SquarifiedTreemaps”
  • 8. SquarifiedTreemaps Instead of rectangles, in this algorithm we try do reduce the aspect ratio as much as possible and hence squarifytreemaps. Reason being: Display space is used more efficiently. The number of pixels to be used for the border is proportional to its circumference. For rectangles this number is minimal if a square is used Square items are easier to detect and point at Comparison of the size of rectangles is easier when their aspect ratios are similar
  • 9. Squarification in practice We initially start with a 6x4 rectangle and add areas 6,6,4,3,2,2,1 to it. At each addition we make sure we have the maximum aspect ratio By standard treemaps algorithm:
  • 10. Squarification in practice With squarification:
  • 11. Final layer to treemaps The squares can be colored to represent an extra dimensions The area/size can be represented using any parameter as per the requirement
  • 12. Using the DA-API to execute treemaps
  • 13. Using the DA-API to execute treemaps Again to use the API we just need to figure out the correct entity and the message type Looking at the specification the entity is RootTreeMapTaskInfo The task will be completed in a sequence of multiple messages, as specified on the website As the task is used for data visualization so it does not produce any type of result
  • 14. Message sequence The steps are:
  • 15. Treemaps using Data Applied’s web interface
  • 19.
  • 20. The tutorials section is free, self-guiding and will not involve any additional support.
  • 21. Visit us at www.dataminingtools.net