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:

Job <- read.csv("job.csv", header = T)
head(Job)
##        City Job.opening
## 1 Hyderabad         460
## 2 Bangalore         380
## 3   Chennai         335
## 4    Mumbai         315
## 5     Delhi         275
## 6      Pune         160
suppressPackageStartupMessages(library(googleVis))
## Creating a generic function for 'toJSON' from package 'jsonlite' in package 'googleVis'
Pie <- gvisPieChart(Job)

You can also embed plots, for example:

print(Pie, 'chart') ## same as cat(sc$html$chart)
Job <- read.csv("job.csv", header = T)
doughnut <- gvisPieChart(Job, 
                         options=list(
                           width=500,
                           height=500,
                           slices="{0: {offset: 0.2},
                          1: {offset: 0.2},
                          2: {offset: 0.2}}",
                           title='City wise Job opening',
                           legend='none',
                           colors="['black','orange', 'blue', 
                        'red', 'purple', 'green', 'yellow', 'brown', 'pink', 'purple']",
                           pieSliceText='label',
                           pieHole=0.5),
                         chartid="doughnut")
print(doughnut, 'chart') ## same as cat(sc$html$chart)