The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Adding count of plots instead of symbol in scatter
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

microbioSaroj

Nepal
3 Posts

Posted - 07/10/2019 :  01:39:43 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
Origin Ver. and Service Release (Select Help-->About Origin): 2018
Operating System: Windows 10
Hi! I am new user to OriginLab. I wanted to draw a scatterplot of two different variables (disk diffusion diameter vs MIC value). Some of the data coincide and instead of black square as a symbol I want the actual count of point at that particular data point. Somewhat like shown in the attached image. Like in the image, 8 data points coincide at that point (x:14, y:4). I had to overlap annotation over symbol and manually count the data and input count number.
Is there a simple way to do that?


Thank you!
SK

Edited by - microbioSaroj on 07/10/2019 01:40:46 AM

YimingChen

1613 Posts

Posted - 07/10/2019 :  09:54:13 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,

Here is one method.
1. Set col(C) data with formula col(A)$+","+col(B)$ .


2. Count the number of rows with duplicated x,y combinations. Highlight col(C), select from menu Statistics: Descriptive Statistics: Discrete Frequency..., In the dialog, change Output Results to [<input>]<input>. Click OK.



3. Add two columns in the worksheet, set values with formulas value(left(col(D), find(col(D),",")-1)) and value(right(col(D), len(col(D))-find(col(D),","))), this is just to extract x,y values for the plot.



4. Make scatter plot with col(F) and col(G). In plot details dialog, enable labels, set Label Form to Col(E), Position to Center. Under Symbol tab, set Symbol Size to 0.


James

Edited by - YimingChen on 07/10/2019 09:55:08 AM
Go to Top of Page

microbioSaroj

Nepal
3 Posts

Posted - 07/10/2019 :  11:48:56 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
quote:
Originally posted by YimingChen

Hi,

Here is one method.
1. Set col(C) data with formula col(A)$+","+col(B)$ .


2. Count the number of rows with duplicated x,y combinations. Highlight col(C), select from menu Statistics: Descriptive Statistics: Discrete Frequency..., In the dialog, change Output Results to [<input>]<input>. Click OK.



3. Add two columns in the worksheet, set values with formulas value(left(col(D), find(col(D),",")-1)) and value(right(col(D), len(col(D))-find(col(D),","))), this is just to extract x,y values for the plot.



4. Make scatter plot with col(F) and col(G). In plot details dialog, enable labels, set Label Form to Col(E), Position to Center. Under Symbol tab, set Symbol Size to 0.


James



Thank you very much! Your solution exactly does what I asked help for. I am grateful for your reply, thank you once again!

SK
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000