# How to make a boxplot in Sage?

How do you make a boxplot in Sage given a dataset?

1

Not an answer! Just copying one of the examples linked in Jason's post in case sagenb gets too slow at times.

```
data1=[1,2,2,2,1,1,2,2,2,2,2,3,3,3,3,3,3,3,4,4,4,3,3,3,4,5,5,10]
data2=[5,4,4,4,4,3,3,3,3,3,3,3,3,3,2,2,2,2,5,5,5,5,5,6,6,6,6,6,6]
r.png()
r.boxplot(data1,data2)
r.dev_off()
```

1

Asked: **
2012-05-24 00:22:03 -0500
**

Seen: **568 times**

Last updated: **May 24 '12**

Plot Series of 3D Direction Vectors (Not All from Origen)

Add graphs produced by a for loop?

Plot the intersection of two surfaces (or solutions of a system of eqs)

convert a symbolic var into a numeric var

Can I scatter plot shaded grids?

How to include PDF image from Sage into LaTeX document (scale issue)?

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.