A histogram with Iris Dataset

Sora Jin
June 21st, 2015

Purpose

  • This is a very simple application to play with the Iris Dataset, generate some histograms using the dataset, to give uers some controls. There are four variables in the dataset, users can choose which variable they want, the number of BINs they want, in order to generate a histogram.

Some Codes

Below is some code that is in the server.R files, which is used to generate the histogram.

colm = as.numeric(input$var)
  hist(iris[,colm], col =input$colour, xlim = c(0, max(iris[,colm])), 
       main = "Histogram of Iris dataset", breaks = seq(0, max(iris[,colm]),
        l=input$bin+1), xlab = names(iris[colm]))

Here is the Result!

alt text

Now it's Your Turn to Play with It!