Bubbleplot in multiple dimensions

조회 수: 1 (최근 30일)
Saunok Chakrabarty
Saunok Chakrabarty 2021년 6월 26일
답변: Kevin Holly 2021년 9월 29일
Hi All,
I'm trying to create a bubbleplot using some data I have, but I'm not sure how to go about it. I went through the documentation (https://in.mathworks.com/matlabcentral/fileexchange/48005-bubbleplot-multidimensional-scatter-plots), but I don't exactly understand the syntax with the example given there. The function is this:
bubbleplot(x, y, z, siz, col, shape)
This is my code so far:
% loading dataset
load('bubbleplot.mat')
% extracting variables from the table named bubbleplot (the original variables had extremely long names)
Country = bubbleplot.Country;
Skills = bubbleplot.AvailabilityofSkills;
Cost = bubbleplot.CostCompetitiveness;
Location = bubbleplot.LocationalAdvantage;
Lang_Cult = bubbleplot.Languageandculturalaffinitywithmajormarkets;
Proximity = bubbleplot.Proximitytoselectedmarkets;
Geography = bubbleplot.Geographyofthecountry;
Comptv = bubbleplot.Competitivenessinothersectorsmanuecommerce;
DigExp = bubbleplot.DigExports;
I want to now plot a bubble chart with DigExp as my bubble variable, and I also want to label the bubbles by Country. The x, y, z variables can be Skills, Cost and Location. How do I do this? The function
bubblechart(x,y,sz)
can only accommodate two variables, and I might want to incorporate more.
Thanks for all your attention.
Regards,
Saunok

답변 (1개)

Kevin Holly
Kevin Holly 2021년 9월 29일
Have you looked into using bubblechart3?

카테고리

Help CenterFile Exchange에서 Statistics and Machine Learning Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by