ggplot2 – Chart Aesthetics and Position Adjustments in R
ggplot2 – Aestheitics Generally when we talk about aesthetics, we talk about the attributes of a chart such as the color, size and shape. However, in ggplot2, it is not just about how something looks...
View ArticleCreating a Line Chart in ggplot 2 in R
Apart from scatter and bar charts, another popular type of chart that is frequently used in financial analysis is the line chart. In this lesson we will learn about how to create a line chart using...
View ArticleAdd a Statistical Layer on Line Chart in ggplot2
R has become very popular not just because of its data visualization capabilities but also its ability to combine data visualizations with statistical information. The statistics layer helps us...
View Articlestat_summary for Statistical Summary in ggplot2 R
stat_summary is a unique statistical function and allows a lot of flexibility in terms of specifying the summary. Using this, you can add a variety of summary on your plots. For example, in a bar...
View ArticleFacets for ggplot2 Charts in R (Faceting Layer)
Faceting is a very useful visualization technique that allows you to create multiple versions of the same plot with multiple subsets of the data. This is also called small multiples. ggplot2 allows us...
View ArticleCoordinates in ggplot2 in R
The coordinate system of a plot refers to the space on which the data is plotted. The coordinate system of a plot, together with the x and y position scale, determines the location of geoms. Below are...
View ArticleChanging Themes (Look and Feel) in ggplot2 in R
The themes layer is used to style all the non-data ink of the plot, i.e., all the visual elements that are not part of data. When we create a chart using ggplot2, it automatically uses a default theme....
View ArticleInstalling R Software on Your Computer
R is one of the leading programming languages used in the financial industry where professionals have applied and used R in various areas such as analyzing financial data, building and evaluate...
View ArticlePerforming Basic Math Operations in R
Now that you have R running on your system and you can see the R console, let’s start by having r do some basic arithmetic for us. We can perform all arithmetic operations in R as you would do on a...
View ArticleSetting Up a Working Directory in R
When beginning to work with R code, the first thing that you need to do is setup a working directory. A working directory is a location on on your computer from which R will read and write files to....
View ArticleInstalling and Using RStudio with R
While R comes with a neat console that you can use for all your R programming needs, you can compliment it with RStudio which is a Gui built on top of R and makes it very easy to manage your...
View ArticleUsing Variables in R
In R programming, we will be using variables all the time, so it is important to understand what a variable is and how it works in R. A variable refers to a named storage that allows us to store data...
View ArticleData Types in R
In R programming, there are five basic data types. Also, everything in R is an object, so we will refer to these data types as classes of objects. So, these five types of objects are: Numeric Integer...
View ArticleCreating and Using Vectors in R
In R, a vector is a series of data elements of the same data type, for example, a series of numbers, a series of characters, or a series of logical values. In finance, for example, the daily...
View ArticleCreate ggplot Graph with German Credit Data in R
In ggplot2 package, we use the ggplot() function to create a fully customized data visualization. We still have the German credit data loaded in the dataframe df. We will start by plotting a simple...
View ArticleSplitting Plots with Facets in ggplots
Faceting refers to splitting the data into multiple subsets and then displaying plots for the specific subsets in a panel. Such plots are also called small-multiple plots. The facet approach partitions...
View Articleggplot2 – Chart Aesthetics and Position Adjustments in R
ggplot2 – Aestheitics Generally when we talk about aesthetics, we talk about the attributes of a chart such as the color, size and shape. However, in ggplot2, it is not just about how something looks...
View ArticleCreating a Line Chart in ggplot 2 in R
Apart from scatter and bar charts, another popular type of chart that is frequently used in financial analysis is the line chart. In this lesson we will learn about how to create a line chart using...
View ArticleAdd a Statistical Layer on Line Chart in ggplot2
R has become very popular not just because of its data visualization capabilities but also its ability to combine data visualizations with statistical information. The statistics layer helps us...
View Articlestat_summary for Statistical Summary in ggplot2 R
stat_summary is a unique statistical function and allows a lot of flexibility in terms of specifying the summary. Using this, you can add a variety of summary on your plots. For example, in a bar...
View Article