R Markdown

This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see http://rmarkdown.rstudio.com.

When you click the Knit button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:

Including Plots

You can also embed plots, for example:

library(ggplot2)
## Warning: package 'ggplot2' was built under R version 3.4.3
iris_temp <- iris[c(1:15),]

sunflowerplot(x = iris_temp$Petal.Length, y = iris_temp$Petal.Width, 
              col = c("yellow","red","orange","green","blue"),
              seg.col = "black", cex = 2)

xyTable(iris_temp[, 3:4], digits = 6)
## $x
##  [1] 1.1 1.2 1.3 1.4 1.4 1.4 1.5 1.5 1.6 1.7
## 
## $y
##  [1] 0.1 0.2 0.2 0.1 0.2 0.3 0.1 0.2 0.2 0.4
## 
## $number
##  [1] 1 1 1 1 4 1 1 3 1 1
# There are 5 colors in the col paameter - "yellow","red","orange","green","blue"
# If you see the xy table values then where number column value is 1 the colours are plotted in sequence
#(yellow","red","orange","green") skipping all the non 1 values.
# when there is 4 and 3 in the number column again color is plotted in sequence ("yellow","red")
# In a nut shell, colors are plotted as per xy table.