How to group and visualize data in histogram?

I have the following table of data.
I would like to create a histogram plot from January to December showing the number of occurences of each rating for a given month. How to do this one?

Respuestas (1)

Cris LaPierre
Cris LaPierre el 17 de Dic. de 2020

0 votos

Histogram does not have grouping capability. However, you can use a bar plot instead.
Use histcounts to get the data you need for plotting, and then use the bar function to create the graph. See this example for how to create a grouped bar plot.
Consider sharing your data (attach using the paperclip icon), as I wasn't feeling motivated enough to transcribe data from your screenshot.

Productos

Preguntada:

el 16 de Dic. de 2020

Respondida:

el 17 de Dic. de 2020

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by