I am having an issue with displaying polylines while using Javascript generated through the googleVis package for R. I have tested it on different browsers but encountered the same problem. Below is a snippet of R code that generates the error, followed by the resulting HTML/Javascript output. Can someone help me identify any mistakes and suggest a solution?
The R code
require(googleVis)
df <- data.frame(Postcode = c("77003","08540","80545"),Tip=c("Houston","Princeton","Red Feather Lakes"))
M <- gvisMap(df, "Postcode", "Tip",
options=list(showLine=TRUE,lineWidth=20,lineColor='red'))
plot(M)
cat(unlist(M))
The resulting HTML/Javascript
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>MapID88977a251b2</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
.
.
. (Content continues) .
.