Create a line graph for categorical data array?

45 ビュー (過去 30 日間)
Samantha Long
Samantha Long 2021 年 3 月 13 日
コメント済み: Star Strider 2021 年 3 月 13 日
I am trying to create a chart with mulitple lines on it to represent each of my data columns. The variables in the columns correspond to the terms in RNA strands- U,G,A,C ; I have having trouble creating the chart with the correct x and y axis because I want the four variables on the y axis and position number on the x axis. So far I have imported my data from an xlsx file and organized it to the proper size array. The position numbers are from 1-99 in the first column and correspond each strand. How do I create a script that will allow me to set the axis as the variables I want instead of having numerial ones?

採用された回答

Star Strider
Star Strider 2021 年 3 月 13 日
See the documentation section on XTickLabel and YTickLabel depending on the one you want to change.
  2 件のコメント
Samantha Long
Samantha Long 2021 年 3 月 13 日
This helps, but it requires the chart already being built. It will not let me plot the data because the values are not being recognized.
Star Strider
Star Strider 2021 年 3 月 13 日
I though that you had the plot constructed and you wanted to replace the numerical values with the base designations.
See the documentation section on categorical variables, and Core Functions Supporting Categorical Arrays among shich is plot.
That’s the best I can do with the information I have.

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

その他の回答 (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