Included is a picture of what I'm trying to do. I downloaded some new functions off of MatLab downloads but they seem to be for numerical variables on both the x and y-axis. I'm looking to group categorical variables on the x-axis of the boxplot. Is there anything I can download or any existing code that does this? Thanks in advance!
If your boxplot data are matrices with the same number of columns, you can useboxplotGroup() from the file exchange to group the boxplots together with space between the groups.
For example,
data = {rand(100,2), rand(100,2)+.2, rand(100,2)-.2};
thank you for this valueable file. I was wondering how the grouping is done?
I have 12 time series (each column one time series) with 100 rows in each column: data(1:100,12). I want to group this data like every 4 columns as 1 group and so on. g1 = data(1:100, 1:4), g2 = data(1:100, 4:8) and g3 = data (1:100, 9:12).
This is from the documentation (current vs.1.2.2).
boxplotGroup(x) receives a 1xm cell array where each element is a matrix with n columns and produced n groups of boxplot boxes with m boxes per group.
So for this input below, there will be 4 groups of 3 boxplots within each group because there are 3 elements of the cell array and each element has 4 columns. That's how you should think about organizing your data.
data = {rand(100,4), rand(20,4)*.8, rand(1000,4)*1.2}
Impossibile completare l'azione a causa delle modifiche apportate alla pagina. Ricarica la pagina per vedere lo stato aggiornato.
Translated by
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.