Select Page

## Some pretty nice school-like charts

This is no real data science but if you need to show some nice and for everyone understandable charts you can try some of these: sin function: plot(sin, -pi, pi) parabola X^2: > x=-100:100 > plot(x^2) root sqrt(x): > x=0:100 > plot(sqrt(x)) hyperbola 1/x:...

## Pie chart

basic pie chart: > parts<-c(10,23,17,41,9) > partlabel<-c("Czech rep.", "Poland", "Hungary", "Germany", "Slovakia") > pie(parts, labels = partlabel) resulting...

## Histogram

basic usage: y&lt;-c(1,5,9,7,5,8,6,7,9,4) hist(y)   resulting chart: Histograms with my Test set 1:...

## Plot command

Plot command is very powerfull and can give you different charts based on data you use. Basic usage of plot command: x&lt;-c(1:10) y&lt;-c(1,5,9,7,5,8,6,7,9,4) plot(x,y) resulting chart: Some other interesting examples with my testing data sets: Test set 1...

## Charts and Graphics

R language has several packages for data visualization: graphics grid lattice We can use charts like: column chart bar chart line plot pie chart scatter plot