ppt圖表圖表類型起始_梅科圖表

ppt圖表圖表類型起始

There are different types of variable width bar charts but two are the most popular: 1) Bar Mekko chart; 2) Marimekko chart.

可變寬度條形圖有不同類型,但最受歡迎的有兩種:1)Mekko條形圖; 2)Marimekko圖表。

They differ in the following: while the Bar Mekko chart (BMc) is like a “standard” bar chart, but its bars are of variable width, a Marimekko chart (Mc) is like a 100% stacked bar chart but its bars are of variable width.

它們在以下方面有所不同:雖然Bar Mekko圖表 (BMc)像“標準”條形圖,但是其條形具有可變寬度, Marimekko圖表 (Mc)就像100%堆疊的條形圖,但是其條形是可變寬度。

WHY: they are used to show two numerical variables for each category present in the data set; the goal is to make a comparison between the categories, but not between the numerical variables. They are widely used in Dashboards or in Marketing and Sales Presentations, where the categories are usually products, regions, sectors, segments, etc. The numerical variables are typically sales, profits, costs, margins, growth rates, etc. They are not suitable for Distribution, Relationships, or Trends over Time analysis.

為何 :它們用于顯示數據集中每個類別的兩個數字變量; 目標是在類別之間進行比較 ,而不是在數值變量之間進行比較 。 它們廣泛用于儀表板或市場營銷和銷售演示,其中類別通常是產品,區域,部門,細分市場等。數值變量通常是銷售,利潤,成本,利潤,增長率等。它們不適合用于時間分布,關系或趨勢分析。

HOW: is a two-dimensional graph similar to a standard bar chart, with rectangular bars usually arranged in a vertical orientation. The vertical axis has a numerical scale (100% on a Marimekko Chart) and represents one of the quantitative variables. The horizontal axis can be either numerical or categorical. If it is numerical, each rectangle has a width proportional to the value of the second quantitative variable, a different color, and a legend that identifies it. If it is categorical, the width of each bar also indicates the value of the second quantitative variable.

HOW :是一個類似于標準條形圖的二維圖形,通常以垂直方向排列矩形條。 垂直軸具有數字刻度(在Marimekko圖表上為100%),代表定量變量之一。 水平軸可以是數字的,也可以是分類的。 如果是數字,則每個矩形的寬度與第二個定量變量的值成比例,并具有不同的顏色和標識它的圖例。 如果是分類的,則每個條的寬度也表示第二個定量變量的值。

The width of the rectangles is generally different for each category. It is always convenient to indicate with numbers or percentages the value of the numerical variable represented on the horizontal axis. These values are usually indicated on the upper baseline.

對于每個類別,矩形的寬度通常是不同的。 用數字或百分比指示水平軸上表示的數字變量的值始終很方便。 這些值通常在較高的基線上指示。

Unlike the standard bar chart, no space is left between the bars (Be careful not to confuse Mekko charts with Histograms [https://towardsdatascience.com/histograms-why-how-431a5cfbfcd5]). In both, BMc and Mc, the entire width of the horizontal axis is occupied.

與標準條形圖不同,條形圖之間不留任何空間 (請注意不要將Mekko圖表與直方圖混淆[https://towardsdatascience.com/histograms-why-how-431a5cfbfcd5])。 在BMc和Mc中, 水平軸的整個寬度都被占用

The Mekko Bar chart is an alternative to classic bar charts allowing you to reduce the number of charts in a business presentation. To achieve this, the chart encodes one of the numerical variables by the height of the bars and the other quantitative variable by the width of the bars. The following graph shows a schematic representation of a Mekko Bar chart: a numerical vertical axis; a horizontal axis with variable width bars, each representing a different category. Product lines, sectors, or regions are examples of categories indicated on the horizontal axis. Sales, costs, or profits could be numerical variables represented by the width of the rectangles.

Mekko條形圖是經典條形圖的替代方案,可讓您減少業務演示中的圖數。 為實現此目的,圖表通過條形圖的高度對數值變量之一進行編碼,并通過條形圖的寬度對另一個定量變量進行編碼。 下圖顯示了Mekko條形圖的示意圖:數字垂直軸; 具有可變寬度條的水平軸,每個條代表不同的類別。 產品線,部門或區域是橫軸上指示的類別的示例。 銷售,成本或利潤可以是由矩形寬度表示的數字變量。

Image for post
Fig. 1: schematic diagram of a Bar Mekko chart. Created with Vizzlo with permission (#1).
圖1:Bar Mekko圖表的示意圖。 由Vizzlo創建并獲得許可(#1)。

The Marimekko Chart is an alternative to grouped bar charts allowing to reduce their number in a business presentation: they show numerical information related to subgroups or subcategories within the main categories. Therefore, this type of visualization allows us to show two numerical values for each category and each subcategory.

Marimekko圖表是條形圖的替代方案,可減少在業務演示中的數量:它們顯示與主要類別中的子類別或子類別相關的數字信息。 因此,這種類型的可視化使我們可以為每個類別和每個子類別顯示兩個數值。

They occupy an entire rectangular area by dividing it into smaller rectangles. Each category is divided into subcategories indicated by stacked rectangles. Each of these rectangles encodes the numerical values for each subcategory of the data set. They are visually equivalent to stacked bar charts, where in addition to having rectangular segments of varying heights, we now also have variable bar widths.

通過將其分成較小的矩形,它們占據了整個矩形區域。 每個類別分為由堆疊矩形表示的子類別。 這些矩形中的每個矩形都對數據集的每個子類別的數值進行編碼。 它們在視覺上等同于堆疊的條形圖,在該條形圖中,除了具有不同高度的矩形段之外,我們現在還具有可變的條形寬度。

The vertical axis of the graph displays a percentage scale while the horizontal axis is normalized to occupy the entire width of the diagram without leaving any blank space between the bars.

圖的垂直軸顯示百分比比例,水平軸被標準化以占據圖的整個寬度,而在條之間不留任何空白。

Image for post
Fig. 2: a Marimekko chart. Created with Vizzlo with permission (#1).
圖2:Marimekko圖表。 由Vizzlo創建并獲得許可(#1)。

Figure 2 describes in a single graph the annual income of a company separated into its different brands and the percentages corresponding to the different regions. The elements that characterize a Marimekko chart can be seen: a rectangular area divided into smaller rectangles of varying width; vertically stacked rectangles; a horizontal axis that occupies the entire width of the chart; a vertical axis with a percentage scale; total revenues per brand on the top baseline; different bar widths that allow calculating the relative contributions of each brand to the total revenues.

圖2在一張圖表中描述了一家公司的年收入,這些公司分為不同的品牌,以及對應于不同地區的百分比。 可以看到表征Marimekko圖表的元素:將矩形區域劃分為寬度不同的較小矩形; 垂直堆疊的矩形; 橫軸占據圖表的整個寬度; 帶有百分比刻度的垂直軸; 在最高基準上每個品牌的總收入; 不同的條形寬度,可以計算每個品牌對總收入的相對貢獻。

Source of the word: Marimekko is a Finnish textile brand that has large and varied shape patterns, as well as simple and bright colors and styles (#2).

詞源:Marimekko是芬蘭的一個紡織品牌,具有多種多樣的形狀圖案,以及簡單明亮的顏色和樣式(#2)。

Warnings:

警告:

Both Bar Mekko Charts and Marimekko Charts are difficult to read and interpret because they are based on audiences’ ability to decode numerical information by comparing areas. It is essential to keep in mind that humans are good at evaluating distances and bad at calculating areas. In addition, as the number of rectangles increases, our ability to make a proper comparison of the different areas decreases.

Bar Mekko圖表和Marimekko圖表都難以閱讀和解釋,因為它們基于觀眾通過比較區域對數字信息進行解碼的能力。 必須記住,人類擅長評估距離而擅長計算面積。 此外,隨著矩形數量的增加,我們對不同區域進行適當比較的能力也會降低。

Marimekko diagrams suffer from the same drawbacks as stacked bar charts: a) there is a practical limit to the number of subcategories, beyond which visualization becomes difficult; b) the best comparisons are made between subcategories near the lower and upper baselines. As we move away from them, the differences between the subcategories become very difficult to evaluate.

Marimekko圖具有與堆積條形圖相同的缺點:a)子類別的數量存在實際限制,超過該限制,可視化將變得困難; b)在上下基線附近的子類別之間進行最佳比較。 隨著我們遠離它們,很難評估子類別之間的差異。

Be cautious with the repeated use of Mekko charts: remember that rectangular bars are very “heavy” and dominant visual markers.

重復使用Mekko圖表時要小心:記住矩形條非常“重”并且是主要的視覺標記。

Note that audiences are usually very familiar with traditional bar charts but not with variable width ones. If you have Mcs or BMcs in your presentation, take some time to explain to the audience the particular characteristics of them so as not to impair the storytelling.

請注意,觀眾通常對傳統的條形圖非常熟悉,但對可變寬度的條形圖則不太熟悉。 如果您的演示文稿中包含Mcs或BMcs,請花一些時間向聽眾解釋它們的特殊特征,以免影響故事的講述。

Marimekko Charts cannot show negative values, nor can they combine absolute values with relative values.

Marimekko圖表不能顯示負值,也不能將絕對值和相對值組合在一起。

Some visualization tools allow you to switch between a vertical and a horizontal layout. However, in the usual practice the vertical layout is used since the horizontal one complicates the storytelling unnecessarily.

一些可視化工具允許您在垂直和水平布局之間切換。 然而,在通常的實踐中,由于水平布置不必要地使講故事復雜化,因此使用垂直布置。

Do not confuse Mcs with spineplots. In its most rigorous definition, a spineplot is a one-dimensional, horizontal stacked bar graph used to display frequencies, proportions, or percentages of two cross-classified categorical variables in contingency tables (#3). The confusion arises because some spineplots visualization tools allow a vertical orientation, which they call mosaic plots. This term is also erroneously attributed to the Marimekko Charts but should be reserved for those charts that allow examining the relationship between two or more categorical variables by means of variable-width rectangles.

不要將Mcs與spineplots混淆 。 在其最嚴格的定義中, 旋轉旋轉圖是一維的水平堆疊的條形圖,用于在列聯表(#3)中顯示兩個交叉分類的分類變量的頻率,比例或百分比。 之所以會出現這種混亂,是因為某些旋轉圖的可視化工具允許垂直定向,他們將其稱為鑲嵌圖 。 該術語也被誤認為是Marimekko圖表,但應保留給那些允許使用可變寬度矩形檢查兩個或多個分類變量之間關系的圖表。

I did not find plotting functions in Python that allow direct graphing of Mcs or BMcs. A Stack Overflow user coded a strategy to plot Bar Mekko charts with Matplotlib using bar charts to which the width of each bar is individually modified using the width parameter (#4). I made minor modifications to his code to get the following figure, a fairly close approximation to a Bar Mekko chart.

我在Python中找不到允許直接繪制Mcs或BMcs的繪圖函數。 Stack Overflow用戶編碼了一種策略,該策略使用條形圖通過Matplotlib繪制Bar Mekko圖,使用寬度參數(#4)分別修改每個條的寬度 。 我對其代碼進行了少量修改,以得到下圖,非常接近Bar Mekko圖表。

Image for post

On the other hand, version 12.0 of statsmodels allows the creation of mosaic graphics from contingency tables (statsmodels.graphics.mosaicplot.mosaic). The following figure and the code to draw it can be found in the following page of the statsmodels organization:

另一方面,版本12.0的statsmodels允許從列聯表( statsmodels.graphics.mosaicplot.mosaic )創建鑲嵌圖形。 下圖和繪制它的代碼可以在statsmodels組織的以下頁面中找到

https://www.statsmodels.org/stable/generated/statsmodels.graphics.mosaicplot.mosaic.html

https://www.statsmodels.org/stable/generation/statsmodels.graphics.mosaicplot.mosaic.html

As can be seen in the following figure, mosaic graphs indicate categorical variables on both the horizontal and vertical axis (#5):

如下圖所示,鑲嵌圖在水平和垂直軸(#5)上均指示類別變量:

Image for post

To summarize: the most important conceptual idea related to the Mekko Charts lies in their ability to appropriately weight the magnitude of one of the numerical variables. Traditional bar charts in all their variants (standard, grouped, stacked, overlapping, etc.) use the same bar width for all categories and therefore only make comparisons by means of the length or height of a single numerical variable. The variable width in the Mekko Charts allows us to show in a single graph the relative value of the second numerical variable. In contrast, they have low visual effectiveness: the accuracy and clarity of the coded information that reaches the audience is relatively low.

總結:在自己適當地加權數值變量之一的大小,能力有關美康圖表謊言最重要的概念想法。 傳統條形圖的所有變體(標準,分組,堆疊,重疊等)對所有類別都使用相同的條形寬度,因此只能通過單個數字變量的長度或高度進行比較。 Mekko圖表中的變量寬度使我們可以在單個圖形中顯示第二個數字變量的相對值。 相反,它們的視覺效果很差 :到達受眾的編碼信息的準確性和清晰度相對較低。

If you find this article of interest, please read my previous:

如果您發現這篇文章感興趣,請閱讀我以前的文章:

“Histograms, Why & How, Storytelling, Tips & Extensions”

“直方圖,原因和方式,講故事,提示和擴展”

“All You Need to Know About Bar Graphs”

“您需要了解的有關條形圖的所有信息”

#1: https://vizzlo.com/

#1: https : //vizzlo.com/

#2: https://en.wikipedia.org/wiki/Marimekko

#2: https : //en.wikipedia.org/wiki/Marimekko

#3: Fox, N., “Speaking Stata: Spineplots and their kin”, The Stata Journal (2008), 8, Number 1, pp. 105–121

#3:北卡羅來納州福克斯(Fox,N.),“講故事的國家:Spineplots及其親屬”,《國家統計》(The Stata Journal)(2008),第8期,第1期,第105–121頁

#4:https://stackoverflow.com/questions/57164333/bar-chart-with-different-widths-and-colors-in-matplotlib-bar-mekko-chart

#4:https://stackoverflow.com/questions/57164333/bar-chart-with-different-widths-and-colors-in-matplotlib-bar-mekko-chart

#5: https://www.statsmodels.org/stable/generated/statsmodels.graphics.mosaicplot.mosaic.html

#5: https : //www.statsmodels.org/stable/generation/statsmodels.graphics.mosaicplot.mosaic.html

翻譯自: https://towardsdatascience.com/mekko-charts-f38311c576e2

ppt圖表圖表類型起始

本文來自互聯網用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務,不擁有所有權,不承擔相關法律責任。
如若轉載,請注明出處:http://www.pswp.cn/news/389951.shtml
繁體地址,請注明出處:http://hk.pswp.cn/news/389951.shtml
英文地址,請注明出處:http://en.pswp.cn/news/389951.shtml

如若內容造成侵權/違法違規/事實不符,請聯系多彩編程網進行投訴反饋email:809451989@qq.com,一經查實,立即刪除!

相關文章

Tomcat日志亂碼了怎么處理?

【前言】 tomacat日志有三個地方,分別是Output(控制臺)、Tomcat Localhost Log(tomcat本地日志)、Tomcat Catalina Log。 啟動日志和大部分報錯日志、普通日志都在output打印;有些錯誤日志,在Tomcat Localhost Log。 三個日志顯示區,都可能…

python 編碼規范

縮進 用4個空格來縮進代碼 分號 不要在行尾加分號, 也不要用分號將兩條命令放在同一行。 行長度 每行不超過80個字符 以下情況除外: l 長的導入模塊語句 l 注釋里的URL 不要使用反斜杠連接行。 Python會將 圓括號, 中括號和花括號中的行隱式的連接起來 , 你可以利用…

5888. 網絡空閑的時刻

5888. 網絡空閑的時刻 給你一個有 n 個服務器的計算機網絡,服務器編號為 0 到 n - 1 。同時給你一個二維整數數組 edges ,其中 edges[i] [ui, vi] 表示服務器 ui 和 vi 之間有一條信息線路,在 一秒 內它們之間可以傳輸 任意 數目的信息。再…

django框架預備知識

內容: 1.web預備知識 2.django介紹 3.web框架的本質及分類 4.django安裝與基本設置 1.web預備知識 HTTP協議:https://www.cnblogs.com/wyb666/p/9383077.html 關于web的本質:http://www.cnblogs.com/wyb666/p/9034042.html 如何自定義web框架…

現實世界 機器學習_公司溝通分析簡介現實世界的機器學習方法

現實世界 機器學習In my previous posts I covered analytical subjects from a scientific point of view, rather than an applied real world problem. For this reason, this article aims at approaching an analytical idea from a managerial point of view, rather tha…

拷貝構造函數和賦值函數

1、拷貝構造函數:用一個已經有的對象構造一個新的對象。 CA(const CA & c )函數的名稱必須和類名稱相一致,它的唯一的一個參數是本類型的一個引用變量,該參數是const 類型,不可變。 拷貝構造函數什么時…

[bzoj3036]綠豆蛙的歸宿

題目大意:給定 $DAG$ 帶邊權連通圖,保證所有點都能到達終點 $n$,每個點等概率沿邊走,求起點 $1$ 到終點 $n$ 的期望長度。 題解:拓撲,然后倒著$DP$就可以了 卡點:無 C Code: #includ…

5902. 檢查句子中的數字是否遞增

5902. 檢查句子中的數字是否遞增 句子是由若干 token 組成的一個列表,token 間用 單個 空格分隔,句子沒有前導或尾隨空格。每個 token 要么是一個由數字 0-9 組成的不含前導零的 正整數 ,要么是一個由小寫英文字母組成的 單詞 。 示例&…

蒜頭君吃桃

蒜頭君買了一堆桃子不知道個數,第一天吃了一半的桃子,還不過癮,有多吃了一個。以后他每天吃剩下的桃子的一半還多一個,到 nn 天只剩下一個桃子了。蒜頭君想知道一開始買了多少桃子。 輸入格式 輸入一個整數 n(2≤n≤60)&#xff0…

Chrome keyboard shortcuts

2019獨角獸企業重金招聘Python工程師標準>>> Chrome keyboard shortcuts https://support.google.com/chrome/answer/157179?hlen 轉載于:https://my.oschina.net/qwfys200/blog/1927456

數據中心細節_當細節很重要時數據不平衡

數據中心細節定義不平衡數據 (Definition Imbalanced Data) When we speak of imbalanced data, what we mean is that at least one class is underrepresented. For example, when considering the problem of building a classifier, let’s call it the Idealisstic-Voter.…

辛普森悖論_所謂的辛普森悖論

辛普森悖論We all know the Simpsons family from Disneyland, but have you heard about the Simpson’s Paradox from statistic theory? This article will illustrate the definition of Simpson’s Paradox with an example, and show you how can it harm your statisti…

查看NVIDIA使用率工具目錄

2019獨角獸企業重金招聘Python工程師標準>>> C:\Program Files\NVIDIA Corporation\Display.NvContainer\NVDisplay.Container.exe 轉載于:https://my.oschina.net/u/2430809/blog/1927560

2043. 簡易銀行系統

2043. 簡易銀行系統 你的任務是為一個很受歡迎的銀行設計一款程序,以自動化執行所有傳入的交易(轉賬,存款和取款)。銀行共有 n 個賬戶,編號從 1 到 n 。每個賬號的初始余額存儲在一個下標從 0 開始的整數數組 balance…

余弦相似度和歐氏距離_歐氏距離和余弦相似度

余弦相似度和歐氏距離Photo by Markus Winkler on UnsplashMarkus Winkler在Unsplash上拍攝的照片 This is a quick and straight to the point introduction to Euclidean distance and cosine similarity with a focus on NLP.這是對歐氏距離和余弦相似度的快速而直接的介紹&…

bzoj2152 聰聰可可

題目描述 聰聰和可可是兄弟倆,他們倆經常為了一些瑣事打起來,例如家中只剩下最后一根冰棍而兩人都想吃、兩個人都想玩兒電腦(可是他們家只有一臺電腦)……遇到這種問題,一般情況下石頭剪刀布就好了,可是他們…

七、 面向對象(二)

匿名類對象 創建的類的對象是匿名的。當我們只需要一次調用類的對象時,我們就可以考慮使用匿名的方式創建類的對象。特點是創建的匿名類的對象只能夠調用一次! package day007;//圓的面積 class circle {double radius;public double getArea() {// TODO…

機器學習 客戶流失_通過機器學習預測流失

機器學習 客戶流失介紹 (Introduction) This article is part of a project for Udacity “Become a Data Scientist Nano Degree”. The Jupyter Notebook with the code for this project can be downloaded from GitHub.本文是Udacity“成為數據科學家納米學位”項目的一部分…

2044. 統計按位或能得到最大值的子集數目

2044. 統計按位或能得到最大值的子集數目 給你一個整數數組 nums ,請你找出 nums 子集 按位或 可能得到的 最大值 ,并返回按位或能得到最大值的 不同非空子集的數目 。 如果數組 a 可以由數組 b 刪除一些元素(或不刪除)得到&…

redis系列:分布式鎖

1 介紹 這篇博文講介紹如何一步步構建一個基于Redis的分布式鎖。會從最原始的版本開始,然后根據問題進行調整,最后完成一個較為合理的分布式鎖。 本篇文章會將分布式鎖的實現分為兩部分,一個是單機環境,另一個是集群環境下的Redis…