Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
duplicate data points in scatterplot

Subject: duplicate data points in scatterplot

From: ruud verschaeren

Date: 3 Nov, 2009 20:59:04

Message: 1 of 5

Hi all,

I have a scatter plot with some duplicate data points. The standard code writes these on top of each other. In statistical programs they have ways of showing this is a double or triple data point. In matlab I haven't found these methods. Are there standard formulas or file exchange scripts that do this? I had a look but found nothing.

some examples: sunflowerplot and jitterplot: http://www.ats.ucla.edu/stat/spss/faq/jitter.htm

is there something around for Matlab?


Regards, Ruud

Subject: duplicate data points in scatterplot

From: dpb

Date: 4 Nov, 2009 21:36:59

Message: 2 of 5

ruud verschaeren wrote:
...
> I have a scatter plot with some duplicate data points. The standard
> code writes these on top of each other. In statistical programs they
> have ways of showing this is a double or triple data point. In matlab
> I haven't found these methods. Are there standard formulas or file
> exchange scripts that do this? I had a look but found nothing.
>
> some examples: sunflowerplot and jitterplot:
> http://www.ats.ucla.edu/stat/spss/faq/jitter.htm
>
> is there something around for Matlab?
...
If file exchange didn't uncover it, perhaps not.

Doesn't look like the jitter solution would be too difficult to
implement, however. Add a percentage factor onto each data point
coordinate for each duplicate entry--of course it ends up w/ the
question in general of "what's a duplicate?" in floating point
comparisons possibly as well as just how many duplicate points do you
really want to be able actually discern?

Another solution I've seen (altho I don't have a handy example to link
to) uses a circle or other figure and adjust its size so the area (or
diameter) is proportional to the number of points.

Yet another would be to annotate the locations w/ the number of points
textually.

But, to answer the original question, "I don't know"... :)

--

Subject: duplicate data points in scatterplot

From: the cyclist

Date: 4 Nov, 2009 22:00:18

Message: 3 of 5

"ruud verschaeren" <r.l.p.verschaeren@student.tue.nl> wrote in message <hcq5in$cqp$1@fred.mathworks.com>...
> Hi all,
>
> I have a scatter plot with some duplicate data points. The standard code writes these on top of each other. In statistical programs they have ways of showing this is a double or triple data point. In matlab I haven't found these methods. Are there standard formulas or file exchange scripts that do this? I had a look but found nothing.
>
> some examples: sunflowerplot and jitterplot: http://www.ats.ucla.edu/stat/spss/faq/jitter.htm
>
> is there something around for Matlab?
>
>
> Regards, Ruud

I notice that the jitter option is available in the BOXPLOT function, but apparently not in SCATTER.

Subject: duplicate data points in scatterplot

From: J G

Date: 29 May, 2012 02:44:07

Message: 4 of 5

Hi Ruud, I am wondering the same thing - did you ever find a solution?

Subject: duplicate data points in scatterplot

From: Stuart Layton

Date: 10 Dec, 2012 02:20:24

Message: 5 of 5

"ruud verschaeren" wrote in message <hcq5in$cqp$1@fred.mathworks.com>...
> Hi all,
>
> I have a scatter plot with some duplicate data points. The standard code writes these on top of each other. In statistical programs they have ways of showing this is a double or triple data point. In matlab I haven't found these methods. Are there standard formulas or file exchange scripts that do this? I had a look but found nothing.
>
> some examples: sunflowerplot and jitterplot: http://www.ats.ucla.edu/stat/spss/faq/jitter.htm
>
> is there something around for Matlab?
>
>
> Regards, Ruud

I know its a bit late, but it looks like scatter plot has an undocumented jitter feature:

http://undocumentedmatlab.com/blog/undocumented-scatter-plot-jitter/

Tags for this Thread

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us