====== Data Visualization ======
You will spend a considerable amount of time during your project with generating data. However producing the most interesting and well researched data is meaningless if you cannot communicate your findings with clear and well structured visualizations.
Before your start your quest for the perfect plot, you should ask yourself:
* What data type do you want to show and what is the right plot for your data? (Figure {{ref>plottype}})
* What is the message of your plot?
* Who is your audience?
{{ :general:images:diverse:choosing_a_good_chart-1.png }}
**Choosing the right plot for your data.**
If you want to get a short primer on data visualization, check out these slides:
* {{:general:documentation:00_data_vis_concepts.pdf|Data visualization slides by R. Burke Squires (NIH)}}
* [[https://data.europa.eu/sites/default/files/course/SC159_U3_Going%20beyond%20bars%20and%20lines_2.00.pdf|EU DataViz Conference - Effective, non-standard data
visualisation]]
===== Programming free Data Visualization =====
* [[https://rawgraphs.io/|Raw Graphs]]
Simple web-interface for data exploration and the creation of various graph types directly from a spreadsheet.
===== Data visualization with python =====
There are many different libraries with powerful functions for data visualization. All packages have their own strength and weaknesses and you will find a short description of some of them below. If you would like to pick your package depending on the kind of graph you need right now, check out the [[https://www.python-graph-gallery.com/|Python Graph Gallery]] by Yan Holtz for some inspiration and more information.
=== Matplotlib ===
One of the most popular choices when it comes to creating plots with python, [[https://matplotlib.org/stable/index.html|Matplotlib]] is an extensive library full of [[https://matplotlib.org/stable/gallery/index.html|different tools]] for data visualization.
=== Seaborn ===
[[https://seaborn.pydata.org/|Seaborn]] is a powerful extension of Matplotlib with which you can create publication-ready figures in as little as one line of code. Structure your data with [[https://pandas.pydata.org/|Pandas]] dataframes to get the most out of Seaborn.
=== Plotly ===
Best known for creating [[https://dash.plotly.com/|interactive web-appliations]], you can also use [[https://plotly.com/python/|plotly]] to create offline figures.
===== Creating custom color palettes ======
Packages like seaborn come with a [[https://seaborn.pydata.org/tutorial/color_palettes.html|variety of color palettes]] for all kinds of data (continues, categorical, divergent etc.). Sometimes you might want to create your own color scheme. In this case you can use the webtool [[https://coolors.co/|Coloors]] to quickly generate your own set of colorations.
----
* [[ecoevo_molevol:course_introduction|Back to EcoEvo course]]
* [[pbioc_basics:start|Back to PBioC course]]
* [[digikomp_bio:course_introduction|Back to DigiKomp course]]