Wellll... A few weeks back I started working on a tutorial for our lab's Code Club on how to make shitty graphs. It was too dispiriting and I balked. A twitter workshop with figures and code:

Here's the code to generate the data frame. You can get the "raw" data from https://t.co/jcTE5t0uBT
Obligatory stacked bar chart that hides any sense of variation in the data
Obligatory stacked bar chart that shows all the things and yet shows absolutely nothing at the same time
STACKED Donut plot. Who doesn't want a donut? Who wouldn't want a stack of them!?! This took forever to render and looked worse than it should because coord_polar doesn't do scales="free_x".
More donuts. Let's get rid of all that messy variation in the data
One pie for @surt_lab, one for @watermicrobe, and one waiting to explode for @a2binny
Fine. Here's a pie for those of you that are still watching... This also took forever to render. The numbers are subject IDs
In all seriousness, here's the type of plot that I encourage for showing relative abundance by taxonomic data. Not fully polished, but you get the idea. Here each diagnosis has about 160 samples. With fewer samples, I'd use geom_jitter rather than geom_histogram
I prefer the boxplot/jitter plot because it allows the viewer to directly compare what I think is important. It also shows the variation in the data. Here's more polished version.
You can see how to do this for other taxonomic levels, incorporate statistical analysis to pick levels to show, and how to add a log scale on y-axis at https://t.co/U30ehefQPE. Thanks for attending my twitter workshop.

More from Data science

I have always emphasized on the importance of mathematics in machine learning.

Here is a compilation of resources (books, videos & papers) to get you going.

(Note: It's not an exhaustive list but I have carefully curated it based on my experience and observations)

📘 Mathematics for Machine Learning

by Marc Peter Deisenroth, A. Aldo Faisal, and Cheng Soon Ong

https://t.co/zSpp67kJSg

Note: this is probably the place you want to start. Start slowly and work on some examples. Pay close attention to the notation and get comfortable with it.


📘 Pattern Recognition and Machine Learning

by Christopher Bishop

Note: Prior to the book above, this is the book that I used to recommend to get familiar with math-related concepts used in machine learning. A very solid book in my view and it's heavily referenced in academia.


📘 The Elements of Statistical Learning

by Jerome H. Friedman, Robert Tibshirani, and Trevor Hastie

Mote: machine learning deals with data and in turn uncertainty which is what statistics teach. Get comfortable with topics like estimators, statistical significance,...


📘 Probability Theory: The Logic of Science

by E. T. Jaynes

Note: In machine learning, we are interested in building probabilistic models and thus you will come across concepts from probability theory like conditional probability and different probability distributions.

You May Also Like

ARE WE FAMILIAR WITH THE MEANING & POWER OF MANTRAS WE CHANT?

Whenever we chant a Mantra in Sanskrit, it starts with 'Om' and mostly ends with 'Swaha' or 'Namaha'. This specific alignment of words has a specific meaning to it which is explained in Dharma Shastra.


Mantra is a Sanskrit word meaning sacred syllable or sacred word. But Mantras r not just words put together,they r also vibrations.The whole Universe is a cosmic energy in different states of vibration &this energy in different states of vibration forms the objects of Universe.

According to Scriptures,Om is considered to be ekaakshar Brahman,which means Om is the ruler of 3 properties of creator,preserver&destroyer which make the
https://t.co/lyhkWeCdtv is also seen as a symbol of Lord Ganesha, as when starting the prayer,it's him who is worshipped 1st.


'Om' is the sound of the Universe. It's the first original vibration of the nothingness through which manifested the whole Cosmos. It represents the birth, death and rebirth process. Chanting 'Om' brings us into harmonic resonance with the Universe. It is a scientific fact.

Therefore, Mantras are described as vibrational words that are recited, spoken or sung and are invoked towards attaining some very specific results. They make very specific sounds at a frequency that conveys a directive into our subconcious.