# Beginners Guide to R

## Data Science in R: Interpreting Data Using Descriptive Statistics with R

Hits: 25 Interpreting Data Using Descriptive Statistics with R   Introduction Descriptive Statistics is the foundation block of summarizing data. It is divided into the measures of central tendency and the measures of dispersion. Measures of central tendency include mean, median, and the mode, while the measures of variability include standard deviation, variance, and the …

## Beginners Guide to R – R Scatter Plot – ggplot2

Hits: 80   R Scatter Plot – ggplot2 A scatter plot is a graphical display of relationship between two sets of data. They are good if you to want to visualize how two variables are correlated. That’s why they are also called correlation plot. Create a Scatter Plot To get started with plot, you need …

## Beginners Guide to R – R Quantile-Quantile (QQ) Plot – Base Graph

Hits: 49 R Quantile-Quantile (QQ) Plot – Base Graph Sometimes it’s important to know whether the data is normally distributed. A quantile-quantile plot (QQ plot) is a good first check. It shows the distribution of the data against the expected normal distribution. If the data is normally distributed, the points fall on the 45° reference …

## Beginners Guide to R – R Pie Chart – Base Graph

Hits: 9   R Pie Chart – Base Graph A Pie Chart is a special chart that shows relative sizes of data using pie slices. They are good if you are trying to compare parts of a single data series to the whole. The pie() function In R, you can create a pie chart using the pie() function. …

## Beginners Guide to R – R Histogram – Base Graph

Hits: 5 R Histogram – Base Graph A Histogram is a graphical display of continuous data using bars of different heights. It is similar to a bar graph, except a histogram groups the data into bins. The height of each bar shows the number of elements in the bin. They are a great way to …

## Beginners Guide to R – R Box-whisker Plot – Base Graph

Hits: 31 R Box-whisker Plot – Base Graph The box-whisker plot (or a boxplot) is a quick and easy way to visualize complex data where you have multiple samples. A box plot is a good way to get an overall picture of the data set in a compact manner. The boxplot() function You can use …

## Beginners Guide to R – R Scatter Plot – Base Graph

Hits: 40 R Scatter Plot – Base Graph A scatter plot is a graphical display of relationship between two sets of data. They are good if you to want to visualize how two variables are correlated. That’s why they are also called correlation plot. The plot() function The basic plot() function is a generic function that can …

## Beginners Guide to R – R plot() Function

Hits: 10 R plot() Function An effective and accurate data visualization is an important part of a statistical analysis. It can make your data come to life and convey your message in a powerful way. R has very strong graphics capabilities that can help you visualize your data. The plot() function In R, the base …

## Beginners Guide to R – Read and Write Excel Files in R

Hits: 11 Read and Write Excel Files in R Excel is the most popular spreadsheet software used to store tabular data. So, it’s important to be able to efficiently import and export data from these files. R’s xlsx package makes it easy to read, write, and format excel files. The xlsx Package The xlsx package provides necessary …

## Beginners Guide to R – Read and Write CSV Files in R

Hits: 43 Read and Write CSV Files in R One of the easiest and most reliable ways of getting data into R is to use CSV files. The CSV file (Comma Separated Values file) is a widely supported file format used to store tabular data. It uses commas to separate the different values in a line, where …

## Beginners Guide to R – R Apply Family

Hits: 10 R Apply Family Loops (like for, while and repeat) are a way to repeatedly execute some code. However, they are often slow in execution when it comes to processing large data sets. R has a more efficient and quick approach to perform iterations – The apply family. Apply family in R The apply family consists of vectorized functions. …

## Beginners Guide to R – R Functions

Hits: 3 R Functions In simple terms, a function is a block of statements that can be used repeatedly in a program. R provides many built-in functions and allows programmers to define their own functions. Syntax Here’s the syntax of a function in R: Create a Function To define a function in R, use the function command and assign …

## Beginners Guide to R – R Repeat Loop

Hits: 2 R Repeat Loop A repeat loop just repeats a block of code indefinitely. In this loop, no condition checking is performed in order to end the loop. To stop repeating the loop, you must put a condition explicitly inside it with break statement. Failing to do so will create an infinite/endless loop. Syntax Here’s the syntax of …

## Beginners Guide to R – R For Loop

Hits: 2 R For Loop The for statement in R is a bit different from what you usually use in other programming languages. Rather than iterating over a numeric progression, R’s for statement iterates over the items of a vector or a list. The items are iterated in the order that they appear in the vector. Syntax Here’s the syntax of the for statement: …