ML Visualizations
Himanshu K. Gajera
Department of Computer Science & Engineering
Pandit Deendayal Energy University, Gandhinagar
Introduction
Introduction
Data Visualization turns data into images that nearly anyone can understand making them invaluable for explaining the
significance of digits to people who are more visually oriented.
Not every time the numbers will sound meaningful to people working with data.
This is where Data Visualization comes in.
It is a technique of encoding those numbers into images which can be much more helpful to gain meaningful insights.
It is one of the essential steps in every Data Science process.
Categories of Data Visualization
Top Data Visualization Tools
1. Tableau
2. Looker
3. Zoho Analytics
4. Sisense
5. IBM Cognos Analytics
6. Qlik Sense
7. Domo
8. Microsoft Power BI
9. Klipfolio
10. SAP Analytics Cloud
Top Data Visualization Libraries Available in Python, R, and Javascript
Python:
1. Matplotlib
2. Plotly
3. ggplot
4. Seaborn
5. Altair
6. Geoplotlib
7. Bokeh
R:
1. ggplot2
2. Plotly
3. Leaflet
4. Esquisse
5. Lattice
JavaScript:
1. [Link]
2. [Link]
3. Plotly
Scatterplot
This is used to find a relationship in a bivariate data. It is most commonly used to find correlations between two
continuous variables.
[Link](x = 'total_bill', y = 'tip', hue = 'sex', data = tips);
Stripplot
A strip plot is a single-axis scatter plot that is used to visualize the distribution of many individual one-dimensional
values. The values are plotted as dots along one unique axis, and the dots with the same value can overlap.
[Link](x="time", y="total_bill", hue="sex", data=tips);
Swarmplot
swarmplot() method is used to draw a non-overlapping scatter plot where one of the variables is a categorical variable.
[Link](x="day", y="total_bill", hue="sex", data=tips);
Histogram
The histogram shows the distribution of a continuous variable. It can discover the frequency distribution for a single
variable in a univariate analysis.
BarPlot
Bar Chart or Bar Plot is used to represent categorical data with vertical or horizontal bars. It is a general plot that allows
you to aggregate the categorical data based on some function, by default the mean.
[Link](x='day', y='total_bill', data=tips, palette='tab10');
Pie Chart
Pie Chart is a type of plot which is used to represent the proportion of each category in categorical data. The whole pie
is divided into slices which are equal to the number of categories.
Countplot
Countplot is similar to a bar plot except that we only pass the X-axis and Y-axis represents explicitly counting the
number of occurrences. Each bar represents count for each category of species.
Boxplot
Boxplot is used to show the distribution of a variable. The box plot is a standardized way of displaying the distribution
of data based on the five-number summary: minimum, first quartile, median, third quartile, and maximum.
[Link](x='day', y='total_bill', hue='sex', data=tips, linewidth =2.5, palette='Dark2');
Boxplot
Boxplot is used to show the distribution of a variable. The box plot is a standardized way of displaying the distribution
of data based on the five-number summary: minimum, first quartile, median, third quartile, and maximum.
Kdeplot
A kernel density estimate (KDE) plot is a method for visualizing the distribution of observations in a dataset, analogous
to a histogram. KDE represents the data using a continuous probability density curve in one or more dimensions.
[Link](data=df , x='Age', hue='Sex', multiple='stack', palette='tab10');
Violinplot
Violin plots are used when you want to observe the distribution of numeric data, and are especially useful when you
want to make a comparison of distributions between multiple groups. The peaks, valleys, and tails of each group's
density curve can be compared to see where groups are similar or different.
[Link](x="day", y="total_bill", data=tips);
Heatmap
Heatmap is a type of Matrix plot that allows you to plot data as color-encoded matrices. It is mostly used to find multi-
collinearity in a dataset.
To plot a heatmap, your data should already be in a matrix form, the heatmap basically just colors it in for you.
Distplot
The Distplot shows the distribution of a univariate data
Jointplot
Jointplot is used to represent the distribution of one variable to match up with the distribution of another variable. To be
more specific, Jointplot allows you to basically match up two Distplots for bivariate data.
Conclusions
Hence, we have covered most of the basics of Python Visualization using seaborn and matplotlib.
I hope this article will give you a head start for diving into Python Visualization.
Also, You can refer to the official documentation for Matplotlib and Seaborn for further reference and deep
understandings