In-built Datasets in RStudio

There are several datasets in RStudio that you can use for practice. Mtcars dataset is actually Motor Trend Car Road Tests Report that includes several variables, such as number of cylinders, miles per gallon etc. Besides this one, there are others, like the dataset that contains information about trees, their age and circumference. You can see the first few rows and columns of these datasets below:

##                    mpg cyl disp  hp drat    wt  qsec vs am gear carb
## Mazda RX4         21.0   6  160 110 3.90 2.620 16.46  0  1    4    4
## Mazda RX4 Wag     21.0   6  160 110 3.90 2.875 17.02  0  1    4    4
## Datsun 710        22.8   4  108  93 3.85 2.320 18.61  1  1    4    1
## Hornet 4 Drive    21.4   6  258 110 3.08 3.215 19.44  1  0    3    1
## Hornet Sportabout 18.7   8  360 175 3.15 3.440 17.02  0  0    3    2
## Valiant           18.1   6  225 105 2.76 3.460 20.22  1  0    3    1
##   Tree  age circumference
## 1    1  118            30
## 2    1  484            58
## 3    1  664            87
## 4    1 1004           115
## 5    1 1231           120
## 6    1 1372           142

You can create different kinds of plots

Using RStudio, you can create some kind of plots that can be used for different purposes, such as scatter plots, box plots, pie charts etc. We will make one of them just to present how they can look like

Example 1: Scatter plot Using RStudio you can even create a map with your own popups, highlights, number of earthquakes, etc.

Example 2: A map

Conclusion

By using RStudio you can create datasets and different kinds of graphs, according to your goals. You can create plots, maps, interactive shiny dashboards etc. There are a lot of programs for making codes and data analyzing, but RStudio is easy to use, accessible and free. That’s why it is the first choice for many people around the World. I would be happy to be one of its users!