3 * (1) wait for user between examples:
4 * demo ("rtest_statgraph.mac")
6 * (2) or noninteractively:
7 * batch ("rtest_statgraph.mac");
9 * Maxima waits for the user to close the Openmath window
10 * before proceeding, but otherwise it just blazes through.
21 fill_density = 3/4), m : read_matrix (file_search ("biomed.data"));
28 bars_colors = [black, grey],
30 sample_keys = ["A", "B"]),
31 l1:makelist(random(10),k,1,50),
32 l2:makelist(random(10),k,1,100);
36 makelist([Yes, No, Maybe][random(3)+1],k,1,50),
37 makelist([Yes, No, Maybe][random(3)+1],k,1,50),
38 makelist([Yes, No, Maybe][random(3)+1],k,1,50),
39 makelist([Yes, No, Maybe][random(3)+1],k,1,50),
40 title = "Asking for something to four groups",
41 ylabel = "# of individuals",
44 ordering = ordergreatp);
47 makelist([Yes, No, Maybe][random(3)+1],k,1,50),
48 makelist([Yes, No, Maybe][random(3)+1],k,1,50),
49 makelist([Yes, No, Maybe][random(3)+1],k,1,50),
50 makelist([Yes, No, Maybe][random(3)+1],k,1,50),
51 title = "Asking for something to four groups",
52 ylabel = "# of individuals",
55 ordering = ordergreatp);
57 block([l1:makelist(random(10),k,1,50),
58 l2:makelist(random(10),k,1,100),
66 frequency = relative),
73 frequency = relative),
74 draw(gr2d(bp1), gr2d(bp2)));
79 title = "Windspeed in knots",
82 line_width = 2), s2 : read_matrix(file_search("wind.data"));
84 boxplot (A, box_orientation = horizontal), A :
85 [[6, 4, 6, 2, 4, 8, 6, 4, 6, 4, 3, 2],
86 [8, 10, 7, 9, 12, 8, 10],
87 [16, 13, 17, 12, 11, 18, 13, 18, 14, 12]];
95 ylabel = "Absolute frequency",
97 fill_density = 0.6), s1 : read_list (file_search ("pidigits.data"));
99 block([m: 14, s: 2, s2],
100 s2: random_normal(m, s, 1000),
104 histogram_description(
109 explicit(pdf_normal(x,m,s), x, m - 3*s, m + 3* s)));
113 xrange = [-1.1, 1.3],
114 yrange = [-1.1, 1.1],
115 title = "Digit frequencies in pi"), s1 : read_list (file_search ("pidigits.data"));
118 random_normal(0,1,200),
121 dimensions = [600,150])$
123 block([l1: makelist(random(10),k,1,50),
124 l2: makelist(random(10),k,1,200)],
127 stars_colors = [blue,red],
128 sample_keys = ["1st sample", "2nd sample"],
131 proportional_axes = xy,
135 random_normal(15, 6, 100),