This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(ggplot2) | |
library(mvtnorm) | |
plot(seq(1, 6, 0.01), dnorm(seq(1,6,0.01), 3.5,0.5), xlab = "A", ylab="P(A)", main="Prior Distribution", type="l") | |
mean=c(4,4) | |
sigma=matrix(c(1,0,0,1), nrow = 2, ncol = 2) | |
dist<-matrix(rep(1, 36), nrow = 6, ncol = 6) | |
for(j in c(1:6)) | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Demo for Dynamic Bar Charts | |
</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js" charset="utf-8"></script> | |
<script> | |
function loadChart() | |
{ | |
var profit=[40,50,50,45,30,35,50,60,55,30,40,50]; | |
var h=100; |
NewerOlder