Difference between revisions of "Help:Drawing graphs"

From Testiwiki
Jump to: navigation, search
(Sankey diagrams)
(See also)
Line 175: Line 175:
 
==See also==
 
==See also==
  
 +
* [http://stackoverflow.com/questions/17502808/double-dots-in-a-ggplot Double dots in a ggplot]
 +
* [http://www.r-bloggers.com/ggplot2-cheatsheet-for-visualizing-distributions/ Visualising distributions]
 
* [http://www.cookbook-r.com/Graphs/Plotting_means_and_error_bars_%28ggplot2%29/ Plotting means and error bars]
 
* [http://www.cookbook-r.com/Graphs/Plotting_means_and_error_bars_%28ggplot2%29/ Plotting means and error bars]
 
* [http://wiki.stdout.org/rcookbook/Graphs/Scatterplots%20%28ggplot2%29/ Cookbook for R: Scatterplots]
 
* [http://wiki.stdout.org/rcookbook/Graphs/Scatterplots%20%28ggplot2%29/ Cookbook for R: Scatterplots]

Revision as of 21:22, 9 February 2015


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.

+ Show code

rlnorm

Graph for cumulative probability distributions

Size of base font:

+ Show code

Colours and ordering of bars

+ Show code

Google charts

This is how you can make fancy Google motion or map charts. See documentation for R package googleVis and Google's help.

+ Show code

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.

Sankey diagrams

There is no established approach to Sankey diagrams. A few packages provide with functionalities, but the usebility and user-friendliness has not been tested.

See also