how to use gscatter plots

1 回表示 (過去 30 日間)
Muazma Ali
Muazma Ali 2021 年 12 月 22 日
コメント済み: Walter Roberson 2021 年 12 月 22 日
I am wondering whether gscatter plots can be grouped with arrays containing two numbers:
I think I need to make structures from the data I am going to have in my datasets as datasets cant include arrays containing two og more numbers but structures can.
but my question is is this possible to write:
gscatter(temperature.zone_number, samlet_akt.zone_number, combination_salts_used, weight_percent_salts)
where the last two variables are my grouping variables and weightpercent is the grouping variable containing two numbers .
  3 件のコメント
Muazma Ali
Muazma Ali 2021 年 12 月 22 日
I didnt understand your question. Weightpercent is supposed to be a grouping variable , an array showing two values for each combination-salts-used.
Walter Roberson
Walter Roberson 2021 年 12 月 22 日
The ways to call gscatter are
gscatter(x,y,g)
gscatter(x,y,g,clr,sym,siz)
gscatter(x,y,g,clr,sym,siz,doleg)
gscatter(x,y,g,clr,sym,siz,doleg,xnam,ynam)
You are passing in 4 parameters, so temperature.zone_number will be treated as x values, samlet_akt.zone_number will be treated as y values. Then the third parameter, combination_salts_used would be treated as a grouping number. The fourth parameter weightpercent would be treated as sym .
It sounds as if you want to pass in two different grouping parameters, as if there was a syntax like
gscatter(x, y, grouping1, grouping2)
but there is no syntax like that.
There is the syntax
gscatter(x, y, {grouping1, grouping2})
"in which case observations are in the same group if they have common values of all grouping variables"
Is that what you are looking for? If so
gscatter(temperature.zone_number, samlet_akt.zone_number, {combination_salts_used, weight_percent_salts})

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLine Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by