In this article, you’ll learn how to add/change the color of points, text and lines. We will also be creating a plot and will try various aesthetic manipulations in the…
Posts published by “Zigya Acadmey”
You can easily add the main title and axis labels with arguments to the plot() function in R to enhance the quality of your graphic. Usage Arguments x the coordinates of points in…
In this article, you’ll learn to use the plot function in R. We will also be creating our very own first plot. The most used plotting function in R programming…
The factors are the variable in R, which takes the categorical variable and stores data in levels. Factors can be ordered or unordered and are an important class for statistical…
Replacing a value is very easy, thanks to replace() in R to replace the values. In data analysis, there may be plenty of instances where you have to deal with…
An array is a data structure that can hold multi-dimensional data. In R, the array is objects that can hold two or more than two-dimensional data. For example, in square…
In R, a matrix is a collection of elements of the same data type (numeric, character, or logical) arranged into a fixed number of rows and columns. Creating Matrices One…
Removing NA values in a vector Lets create a vector containing NA values before removing NA values. As you can see based on the output of the RStudio console, our…
First of all, we are going to discuss from where the concept of a data frame came. The origin of data frames stems from intensive empirical research in the world of…
R is capable of reading data from most formats, including files created in other statistical packages. Whether the data was prepared using Excel (in CSV, XLSX, or TXT format), R…
Even when you write just one value in R, it becomes a vector of length 1 and belongs to one of the above vector types. Vectors are generally created using…
Data types are an integral part of any programming language. They are one of the pioneer building blocks and the development of any programming language usually revolves around them. Consider…
In every computer language variables provide a means of accessing the data stored in memory. R does not provide direct access to the computer’s memory but rather provides a number of…
Comment lines include the line of code or any sort of information that mainly specifies the other programmers (apart from the one who designed the code) about the functionality of…
After installing R and RStudio, the question is now how to start using R/RStudio. In this article, we’ll describe how to run RStudio and to set up your working directory.…
An R script is simply a text file containing (almost) the same commands that you would enter on the command line of R. Coding in R 1. You can get the R console…
Installing R and RStudio on your personal computer is super easy. I hope this helps others who are starting their Data Science journey with R programming. RStudio is an integrated…