How can I attach the grouping labels to each individual "scatter dot" in a scatter plot, using the gscatter function?
I am plotting x = Percentage GDP growth per country against y = Covid-19 performance index (score 1-100) per country. Naturally, 174 countries makes the legend long and difficult to interpret, and the colors that separate the different groups are often so similar it's impossible to spot the difference between them. Is it possible to attach the name of the country to the specific dot in the scatter plot? Or does anyone have a better suggestion as to how I can display my data?

 채택된 답변

Shadaab Siddiqie
Shadaab Siddiqie 2021년 2월 25일

1 개 추천

From my understanding you want to label each data point in a plot. Here is a reference which might help you.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Biological and Health Sciences에 대해 자세히 알아보기

제품

릴리스

R2019a

질문:

2021년 2월 22일

답변:

2021년 2월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by