Difference between revisions of "Help:Drawing graphs"
(→Colours and ordering of bars) |
(→See also) |
||
Line 170: | Line 170: | ||
* [http://sape.inf.usi.ch/quick-reference/ggplot2/themes theme_grey] | * [http://sape.inf.usi.ch/quick-reference/ggplot2/themes theme_grey] | ||
* [http://docs.ggplot2.org/0.9.3/geom_histogram.html Different histograms] | * [http://docs.ggplot2.org/0.9.3/geom_histogram.html Different histograms] | ||
+ | * [http://docs.ggplot2.org/0.9.3.1/coord_cartesian.html Scale and flip graphs with coord_cartesian]. Note that [http://docs.ggplot2.org/0.9.3.1/coord_flip.html coord_flip()] can take coord_cartesian() parameters. | ||
+ | * [http://docs.ggplot2.org/0.9.3.1/stat_density.html Parameters for geom_density] (adjust, fill,...) |
Revision as of 14:51, 29 April 2014
This page is a method.
The page identifier is Op_en5858 |
---|
Moderator:Jouni (see all) |
Give your opinion to the peer rating of the content of this page. |
Upload data
|
Contents
Question
How to draw graphs in Opasnet?
Answer
R-tools
In R-tools, you have the functionalities of R available. We recommend that you use the package ggplot2 whenever possible. It is very powerful, and borrowing good ideas from others is easier if we all use the same approach. Of course, it is also possible to use plot' (a kind of basic graph) as well, but the limits come sooner. This is an example code that contains all kinds of examples with comments.
rlnorm
- Graph for cumulative probability distributions
Colours and ordering of bars
Google charts
This is how you can make fancy Google motion or map charts. See documentation for R package googleVis and Google's help.
Maps and GIS-based data
There are several methods to produce maps. These are described on Opasnet map.
GoogleDocs
GoogleDocs is the method of choice for drawing causal diagrams.
- Make a drawing.
- Share it with everyone with open editing.
- Download is in png or svg format.
- Upload the file to Opasnet and copy a link to the original Google document to the image page.
- Use like any image.
See also
- Cookbook for R: Scatterplots
- Scales of x and y axes
- Add a smoothed conditional mean
- theme_grey
- Different histograms
- Scale and flip graphs with coord_cartesian. Note that coord_flip() can take coord_cartesian() parameters.
- Parameters for geom_density (adjust, fill,...)