r - Plot weighted frequency matrix -
This question is related to two different questions I have asked before:
1) < / P>
2)
I want to reproduce this plot in R:
I found it far away using the code below the graphic:
# test and number of numbers and% numbers num numbet & lt; - 36 numbers & lt; - 1000 # Fill a matrix where the rows are cumulative bets and the column trials are exchamals. & Lt; - Matrix (1, number1): (For sample (C (0,1), numbet, prob = c (5 / 6,1 / 6), (= 1, numbet, ncol = numtri) TRUE) xcum [ , I] & lt; - cumsum (x) / (1: numbet)} # Leave the trial as transparent lines so you can create matlots (xcum, type = "l", xlab = " My question is: "test frequency", ylab = "relative frequency", main = "", col = rgb (0.01, 0.01, 0.01, 0.02), las = 1) I How can I reproduce without plotting more than one specimen, the top conspiracy in one pass, thanks.
You can produce this plot ...
... using this code:
boring
Comments
Post a Comment