April 19, 2018

Introduction

  • This project was created as part of the Developing Data Products course of the Coursera Data Science Specialisation. This is an Assignment in Week 3 of the course.

  • The goal of the project is to create a web page presentation using R Markdown that features a plot created with Plotly, and to host the resulting web page on either GitHub Pages, RPubs, or NeoCities.

  • The interactive plot later in this presentation represent the marks obtained by an Undergraduate student over 6 semesters.

R code for the plot

The following is the code which generated the interactive plot in the next slide.

library(plotly)
marks <- read.csv("Marks.csv",  sep=",", 
                  na.strings=c("NA", "#DIV/0!", ""))
data(marks)
marksnew <- as.data.frame(marks)
plot_ly(marksnew, x = ~ï..semester, y = ~markscored, color = ~subject, 
        type = "scatter", mode = "lines") %>% 
        layout(title="Student Academic Progress", 
               xaxis = list(title="Semester"), 
               yaxis = list(title="Marks Scored"))

The plot output