How to plot four dimensional data in a single plot

조회 수: 8 (최근 30일)
Hirak
Hirak 2018년 3월 2일
댓글: Akira Agata 2018년 3월 4일
Hello Everyone, I have a four-dimensional data to plot, where each dimension is independent of the others, i.e. they do not bear any functional relationship. I have attached the data herewith. Please find me a way to achieve it.
  댓글 수: 1
Pawel Jastrzebski
Pawel Jastrzebski 2018년 3월 2일
If they are bearing no relation to each other why do you want to plot them on a single plot?
In my view you have to options:
  • Plot all of your data on the scatter plot (4 individual lines - they will all fit the same scale)
  • Use 2x2 subplot to present the data as a scatter plot or as a bar chart

댓글을 달려면 로그인하십시오.

답변 (2개)

Akira Agata
Akira Agata 2018년 3월 2일
One possible solution would be using scatter plot with changing marker color and/or marker size to represent 4th dimension value. Here is my initial try:

Hirak
Hirak 2018년 3월 4일
Thanks for the reply. I wanted to plot the data in 3-D bar plots, where x and y-axis should follow the data set of column 1 and 2, z-axis will follow column 3, and the colour code will follow column 4, respectively. Could it be done?
  댓글 수: 1
Akira Agata
Akira Agata 2018년 3월 4일
Looking at your data, the same column 1 and 2 values appears multiple times. So, if you plot this data in 3-D bar, several bars will be placed in the same x and y point. Would you still like to plot the data in 3-D bar style?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by