Scatter Plot in R

The plot() function is used to plot numbers against each other. The scatter plot in R is used to show the relationship between two numerical variables. Here we need two vectors of the same length, one for the x-axis (horizontal) and one for the y-axis (vertical): Output The above example shows the result of 12 … Read more

Analysis of Covariance

Analysis of Covariance is most important in statistics. To create models, we use Regression analysis which describes the effect of variation in predictor variables on the response variable. In some cases, if you have a categorical variable with values like Male/Female or Yes/No etc. Simple regression analysis gives several results for each value of the … Read more

R Function

The R function is a set of statements that are organized together to perform a particular task. R language facilitates a series of built-in functions and permits to use to create their own functions. The modular approach is used to perform tasks in functions. Usually, functions are used to avoid repetition of the same task … Read more

Line Graph in R

The line graph in R has a line that connects all the points in a diagram. With the help of plot() functions you can create a line and add the type parameter with a value of “l” in R programming: Output: Line Color To change the color you can use col parameter, remember the color … Read more

Web Data in R

We can scrap and save web data in R. Every website has its own identity to provide data for the availability of its user in the form of XML, CSV, and txt files. You can filter specific data from that website with the help of R programming. “RCurl” XML” and “String” are packages that are … Read more

Distribution in R

There are two types of distribution in R as follow: Normal Distribution Binomial Distribution Normal Distribution in R The random collection of data from independent sources is known as normal distribution in R. Now we know that we will get a bell shape curve if we plot a graph with the value of the variable … Read more

R Visualization

Visually appealing data visualizations can be created by writing few lines of code. We use the diverse functions of R visualization as an efficient technique for gaining insight into data through a visual medium. A human can easily get information about hidden patterns in data that might be neglected. We can work with a large … Read more

XML File in R

XML is also a markup language that stands for extensible markup language like HTML. Which contains markups tags. You read the XML file in R by installing the XML package. This package can be installed using the following command. Creating XML file Create an XML file by copying the below data into a text editor … Read more

Data Reshaping in R

The data reshaping in R is the name of changing the data organized in rows and columns. Data processing is done by taking the input as a data frame. It is the easiest method to extract data from the rows and columns of the data frame, but here is a problem when you want a … Read more

CSV file in R

CSV stands for Comma Separated Values file, which is a plain text file that contains a list of data. CSV file in R is used for exchanging the data between different applications. Like contact managers and databases mostly support CSV files. Getting and Setting the Working Directory The getwd() function is used to check which … Read more