Maag JLV. gganatogram: An R package for modular visualisation of anatograms and tissues based on ggplot2 [version 1; referees: 1 approved]. F1000Research 2018, 7:1576 (doi: 10.12688/f1000research.16409.1)
citation("gganatogram")
#> To cite package 'gganatogram' in publications use:
#>
#> Maag J (2018). "gganatogram: An R package for modular visualisation
#> of anatograms and tissues based on ggplot2." _f1000research_. Version
#> 1: Awaiting peer review,
#> <https://f1000research.com/articles/7-1576/v1>.
#>
#> A BibTeX entry for LaTeX users is
#>
#> @Article{,
#> title = {gganatogram: An R package for modular visualisation of anatograms and tissues based on ggplot2},
#> author = {Jesper Maag},
#> journal = {f1000research},
#> year = {2018},
#> note = {Version 1: Awaiting peer review},
#> url = {https://f1000research.com/articles/7-1576/v1},
#> }
If you use the tissue plots from gganatogram please cite Expression
Atlas as well. Petryszak et
al. 2015
If you use the main cell figure, please cite The Protein Atlas. Thul PJ et
al. 2017
## install from Github
devtools::install_github("jespermaag/gganatogram")
shiny
I have now included a shiny app for gganatogram. An online version
can be found at shinapps.io. https://jespermaag.shinyapps.io/gganatogram/ Unfortunately,
there is a limit of 25h per month of app activity, so if you know
R/Rstudio, please run it locally. To run it locally, use the
following command.
I have now included cellular substructures, using the cell.svg from the
Protein Atlas. If you use the main cell figure (hopefully more will be
added), please cite Thul PJ et
al. 2017
The cellular data can be access using cell_key
length(cell_key)
#> [1] 1
cell_key
#> $cell
#> organ type colour value
#> 1 cytosol other steelblue 2.07159434
#> 4 intermediate_filaments other #984EA3 14.89497057
#> 6 actin_filaments other #FFFF33 5.87440944
#> 8 focal_adhesion_sites other #F781BF 8.12483660
#> 10 microtubule_organizing_center other #66C2A5 8.67564889
#> 12 centrosome other #8DA0CB 1.02852838
#> 13 microtubules other #E78AC3 9.48882657
#> 16 microtubule_ends other #E5C494 4.80457195
#> 18 secreted_proteins other #8DD3C7 9.20191105
#> 20 lipid_droplets other #BEBADA 3.48903574
#> 22 lysosomes other #80B1D3 3.73790434
#> 24 peroxisomes other #B3DE69 6.79465458
#> 26 endosomes other #D9D9D9 13.48636296
#> 28 endoplasmic_reticulum other #CCEBC5 11.36654344
#> 30 golgi_apparatus other #7FC97F 11.29225961
#> 32 nucleoplasm other #FDC086 2.07964782
#> 34 nuclear_membrane other #386CB0 7.98595837
#> 36 nuclear_bodies other #BF5B17 0.05868359
#> 38 nuclear_speckles other #1B9E77 0.61672243
#> 40 nucleoli other #7570B3 14.96900579
#> 42 nucleoli_fibrillar_center other #66A61E 8.72324527
#> 44 rods_and_rings other #A6761D 9.53194209
#> 46 mitochondria other #A6CEE3 1.29396698
#> 48 plasma_membrane other #B2DF8A 13.45657571
To plot the whole cell with colours or values, use the following
command. If you want to specify a background colour, you either have to
remove the cytosol or change the colour of cytosol to the desired
colour.
Expression atlas contains other organisms than human and mice, however,
these are not as well anotated. All the expression atlas
anatograms can be found here
https://ebi-gene-expression-group.github.io/anatomogram/
Unfortunately, I won’t be able to add other organs to these since I’m
neither an anatomist nor artist. If anyone would like to add more
organs, I would love for you to contribute.
To create these
plots, I have added two other objects other_key and other_list.
These are lists within lists, and to plot all the organs from an
organisms use other_key[[“organism”]] as data, and “organism” as
organism. Also, the organ names are so far a mix of UBERON and
plant ids.
gganatogram
Create anatogram images for different organisms.
This package uses the tissue coordinates from the figure in Expression Atlas. https://www.ebi.ac.uk/gxa/home
https://github.com/ebi-gene-expression-group/anatomogram
Citation
Maag JLV. gganatogram: An R package for modular visualisation of anatograms and tissues based on ggplot2 [version 1; referees: 1 approved]. F1000Research 2018, 7:1576 (doi: 10.12688/f1000research.16409.1)
https://f1000research.com/articles/7-1576/v1
If you use the tissue plots from gganatogram please cite Expression Atlas as well.
Petryszak et al. 2015
If you use the main cell figure, please cite The Protein Atlas.
Thul PJ et al. 2017
More plot examples can be found at https://jespermaag.github.io/blog/2018/gganatogram/
Install
Install from github using devtools.
shiny
I have now included a shiny app for gganatogram.
An online version can be found at shinapps.io.
https://jespermaag.shinyapps.io/gganatogram/
Unfortunately, there is a limit of 25h per month of app activity, so if you know R/Rstudio, please run it locally.
To run it locally, use the following command.
Usage
This package requires
ggplot2andggpolypathwhich loads when loading the packageIn order to use the function gganatogram, you need to have a data frame with organ, colour, and value if you want to.
Using the function gganatogram with the filling the organs based on colour.
Of course, we can use the ggplot themes and functions to adjust the plots
We can also plot all tissues available using hgMale_key
We can also skip plotting the outline of the graph
We can fill the tissues based on the values given to each organ
We can also use facet_wrap to compare groups.
First create add two data frames together with different values and the conditions in the type column
You can also split the tissues into types while retaining the outline
Added female option
All female tissues
You can also split the tissues into types while retaining the outline
To display the female reproductive system with outline.
Added mouse
Male
Female
Cellular structures
I have now included cellular substructures, using the cell.svg from the Protein Atlas. If you use the main cell figure (hopefully more will be added), please cite Thul PJ et al. 2017
The cellular data can be access using cell_key
To plot the whole cell with colours or values, use the following command. If you want to specify a background colour, you either have to remove the cytosol or change the colour of cytosol to the desired colour.
To see all the subsstructures individually, you can plot the data one at a time
Other organisms i.e. tier 2 organisms
Expression atlas contains other organisms than human and mice, however, these are not as well anotated.
All the expression atlas anatograms can be found here https://ebi-gene-expression-group.github.io/anatomogram/
Unfortunately, I won’t be able to add other organs to these since I’m neither an anatomist nor artist.
If anyone would like to add more organs, I would love for you to contribute.
To create these plots, I have added two other objects other_key and other_list.
These are lists within lists, and to plot all the organs from an organisms use other_key[[“organism”]] as data, and “organism” as organism.
Also, the organ names are so far a mix of UBERON and plant ids.
To plot bos_taurus use the following command. Unfortunately, I have not managed to add the correct names yet.
Here is a way to loop through all the other organisms and plot their organs.
Added mouse brain