rose diagram - Length scaling orientation data in MATLAB -


problem

i have data set of describing geological structures. each structure has row 2 attributes - length , orientation (0-360 degrees).

within data set, there 2 types of structure.

  • type 1: less data points, structures physically larger (large length, , more significant).
  • type 2: more data points, structures physically smaller (small length, , less significant).

i want create rose plot show spread of structures' orientations. however, want plot represent significance of structures in combination direction face - taking account lengths.

is possible scale length in matlab somehow subset less numerous not under represented, when structures large?


example

a data set might contain:

  • 10 structures orientated north-south, 50km long.
  • 100 structures orientated east-west, 0.5km long.

in situation east-west population more significant north-south population based on absolute numbers. however, in reality length of members contributing population smaller , structures less significant.


code

this code have far:

load('wg_rose_data.xy')  azimuth = wg_rose_data(:,2);  length = wg_rose_data(:,1);  rose(azimuth,20);  

where wg_rose_data.xy data file 2 columns containing length , azimuth (orientation) data geological structures.

for each row in data, duplicate given number of times, according length value. therefore, if had structure length 50, counts 50 data points, whereas structure length 1 counts 1 data point. of course have round lengths since can have integer numbers of rows.

this achieved so, example data in matrix d

% set example data: 10 large vertical structures, 100 small ones perpendicular d = [repmat([0, 50], 10, 1); repmat([90, .5], 100, 1)]; % each row, duplicate data in column 1, according length in column 2 d1 = []; ii = 1:size(d,1)     % make d(ii,2) = length copies of d(ii,1) = orientation     d1(end+1:end+ceil(d(ii,2))) = d(ii,1);  end 

output rose plot:

rose plot

you fine tune how duplicate data achieve desired balance of actual data , length weighting.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -