Learn about data visualization in R & explore the R visualization packages, terms of RStudio, R graphics concept, data visualization using ggplot2, what topics to learn in data visualization & its pros and cons.

seen from United States

seen from United States

seen from United States

seen from United States
seen from United States

seen from United States
seen from Kazakhstan

seen from United Kingdom
seen from United States

seen from United States
seen from United States

seen from United States

seen from United Kingdom

seen from Slovakia
seen from United States
seen from United States
seen from Iraq
seen from United Kingdom
seen from Indonesia
seen from United States
Learn about data visualization in R & explore the R visualization packages, terms of RStudio, R graphics concept, data visualization using ggplot2, what topics to learn in data visualization & its pros and cons.
R: ggplot using facets
R: ggplot using facets
In this example I am going to teach you to use facets to add another level to your ggplot data visualizations. In this example we will be working with the ChickWeight data set from R Datasets
First, let’s check out the data by running head()
head(ChickWeight)
We have 4 columns in our data, weight, Time, Chick, and Diet.
Now, let’s build our ggplot model. Below, we are setting our model to a…
View On WordPress
R: ggplot - Histograms
R: ggplot – Histograms
Let’s make a Histogram using ggplot
First step, import the ggplot2 library
library(ggplot2)
Now let’s look at our data. In this example I am using chickwts from R Data
head(chickwts) str(chickwts)
As you can see above, this data contains 2 columns weight ( numeric) and feed(Factor with 6 levels)
Histogram
In a histogram, we don’t need to worry about assigning a Y axis, the Y axis is the…
View On WordPress
R: Intro to ggplot()
R: Intro to ggplot()
ggplot() is a powerful graphing tool in R. While it is more complex to use than qplot(), its added complexity comes with advantages.
Don’t worry about the complexity, we are going to step into it slowly.
Let’s start by getting a data set. I am going to choose airquality from the R data sets package. You can find a list of data sets from that package here: Link
We are going to manipulate some of…
View On WordPress
R: Intro to qplot()
R: Intro to qplot()
qplot() stands for Quick Plot. It is an easy to use plotting tool for R. In order to use qplot(), you need to have ggplot2 installed. To see if you have it, just type the following:
library(ggplot2)
If you get an error, you will need to install the package. To install package:
install.packages("ggplot2") library(ggplot2)
Okay, now let’s get some data. R comes will a great collection of data sets…
View On WordPress