Sunday, December 22, 2013

2.5 Visualizing data with R

2.5 Visualizing data with R

In the first part of this tutorial you can see how to make R different types of descriptive statistics. With more advanced datasets like Projects.csv this could be a helpfool tool. 

Using variables of the dataset

In the previous section a variable and matrix is created of the file Projects.csv. Because a matrix is made of the variable, it is possible to apply different types of visualizations of the data.

Applying data visualizations

In the example of Figure 19 shows a graph with the variables Distance Customer and Profit  (Afstand Klant en Winst). This is done by executing the command: plot(Distance Customer,Profit). From the graph you can conclude that the greatest part of the customers are located within the range of a 100 kilometres and that a profit between the 2000 and 6000 appears the most.

The appendix of this tutorial shows commands of more types of data visualization.

Figure 19: Simple visualization of data in R
Figure 19: Simple visualization of data in R

No comments:

Post a Comment