In R, we can create a bar plot using the barplot() function. A Bar Plot or Bar Graph is primarily used to compare values. It presents grouped data using rectangular bars whose lengths are proportional to the values that they represent. Let’s take our Product Sales data where we have the Revenue and Gross Margin for each […]

# Data Science

## Create a Scatter Plot in R with Multiple Groups

Let’s say you have Sales Orders data for a sports equipment manufacturer and you want to plot the Revenue and Gross Margins on a scatter plot. However, you also have a ProductLine column that contains information about the product category and you want to distinguish the x,y points by the ProductLine. We can do so […]

## How to Create a Scatter Plot in R

When you start analyzing a new dataset, your first requirement would be to know the variables in the dataset and the relationship between them. A scatter plot is the perfect place to start with. It is the quickest way to view the relationship between any two variables x and y. You can create a scatter […]

## Accessing Built-in Datasets in R

R comes with many built-in datasets which are quite useful while learning R. To begin learning the basics of data visualization in R, we will make use of some of these datasets. Datasets in the ‘datasets’ package Many datasets are included in a package called datasets which is distributed with R so these datasets are instantly available […]

## Graphic Systems in R

If you want to plot a graph in R for your own consumption, it is pretty easy and you can generally do it with a few lines of code. However, if you are creating the graph for others consumption and want full control over all aspects of the graph, it will require some effort. The […]

## Visualization in Data Science

The advent of data science has opened doors to making discoveries from data in new and innovative ways. By combining statistics, computer science, applied mathematics and data visualizations, a data scientist or analyst can turn vast amounts of complex data into meaningful insights and new knowledge. The fundamental purpose of any data science project is […]

## Understanding Treemap, Heatmap and Other Map Charts

Treemap Treemaps display hierarchical data by using nested rectangles, that is, smaller rectangles within a larger rectangle. The Treemap Chart is intended for the visualization of hierarchical data in the form of nested rectangles. Each level of such a tree structure is depicted as a colored rectangle, often called a branch, which contains other rectangles […]

## Understanding Japanese Candlestick Charts and OHLC Charts

Japanese Candlestick Chart Japanese Candlestick is a type of financial charts, the modification of OHLC Chart. Candlesticks are usually composed of the body (black or white), and an upper and a lower shadow (wick): the area between the open and the close is called the real body, price excursions above and below the real body […]

## What is a Box Plot and How to Read It

A Box Plot is a convenient way of graphically depicting groups of numerical data through their quartiles. They provide a graphical rendition of statistical data based on the minimum, first quartile, median, third quartile, and maximum, also Outliers can be plotted as individual points. The term “box plot” comes from the fact that the graph […]

## How to Read Scatter Chart and Bubble Chart

Scatter charts show the relationships among the numeric values in several data series, or between two groups of numbers as one series of XY coordinates. A scatter chart has two value axes, showing one set of numerical data along the horizontal axis (X-axis) and another one along the vertical axis (Y axis). It combines these […]