<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to draw a Parkes (Consensus) Error Grid? in Graphics Programming</title>
    <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185596#M6836</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for advice Sanjay. However, I am relatively new to the whole SAS scene and am struggling to get to grips with how to go about devising the graphs. Is there any way that a template could be devised which I could simply access and plug my values into? If not, is there any means of discussing this further e.g. over private communication so we can see how to best combat this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to what release of SAS I am using, I am currently utilising version 9.3 of SAS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Jan 2014 02:28:55 GMT</pubDate>
    <dc:creator>motiv3</dc:creator>
    <dc:date>2014-01-02T02:28:55Z</dc:date>
    <item>
      <title>How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185592#M6832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H1&gt;Hey everyone!&lt;/H1&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my first time on this forum so please let me know if you require any further information on the matter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically, I am a hospital physician conducting an experiment looking into whether a glucose meter used heavily within our Department complies with the newly released guidelines. Now part of the new guidelines states the requirement of a Parkes Error Grid for all new meters i.e. they must demonstrate accuracy using this grid (&lt;A href="http://en.wikipedia.org/wiki/Consensus_error_grid" title="http://en.wikipedia.org/wiki/Consensus_error_grid"&gt;Consensus error grid - Wikipedia, the free encyclopedia&lt;/A&gt;). Now I've looked into the grid itself e.g. read the original article and it seems to be an alteration of the original Clarke Error Grid. However, the new Parkes grid has different regions and so I am struggling to make such a graph using SAS; this is only worsened with my lack of experience using this tool! Therefore, I was wondering whether any of you kind people could help me with this matter. I have the paper that provides an outline of the co-ordinates for each region yet, once again, I am kind of stumped on how to approach this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 02:01:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185592#M6832</guid>
      <dc:creator>motiv3</dc:creator>
      <dc:date>2014-01-01T02:01:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185593#M6833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At SAS Global Forum 2013, the paper &lt;A href="http://support.sas.com/resources/papers/proceedings13/133-2013.pdf"&gt;#113-2013 - Creating Clark Error Grid using SAS/GRAPH and Annotate... &lt;/A&gt;by Yongyin Wang and John Shin of Medtronic Diabetes discussed using Annotate to create the Clarke Error Grid.&amp;nbsp; Later, I wrote a Blog article on creating a similar &lt;A href="http://blogs.sas.com/content/graphicallyspeaking/2013/05/09/clark-error-grid-graph/"&gt;Clarke Error Grid Graph&lt;/A&gt; using the SGPLOT procedure, without any Annotation.&amp;nbsp; Between these two resources, you should be able to find the information you need for your use case of the Parkes Error Grid.&amp;nbsp; Personally, I would go with the SGPLOT case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the SGPLOT case, the grid itself is created simply using the Series Plot statement.&amp;nbsp; The points for the series are defined in the data as vertices of the plot. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Jan 2014 02:47:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185593#M6833</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-01-01T02:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185594#M6834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the help, I will try this out later on tonight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just another question. How would I go about formulating a difference plot (Bland-Altman plot) using SAS where I can show clearly the limits defined by the guidelines as shown on the attached image (the black and shaded lines). Although I know that it is essentially a Bland-Altman plot, am a bit confused as to how to place the upper and lower limits defined in the EN ISO as a shaded line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Difference Plot.jpg" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4693_Difference Plot.jpg" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 00:12:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185594#M6834</guid>
      <dc:creator>motiv3</dc:creator>
      <dc:date>2014-01-02T00:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185595#M6835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This seems like an unrelated question.&amp;nbsp; Maybe you can separate it for convenience of other readers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This graphs seems very straightforward.&amp;nbsp; In the graph above, the upper and lower limits have patterns and different colors, but not realy "shaded".&amp;nbsp; It could be shaded using fill colors if you want.&amp;nbsp;&amp;nbsp; This can be done using the BAND plot, using the X, UPPER and LOWER parameters.&amp;nbsp; You can use GROUPed band in one statement, or overlay two separate bands.&amp;nbsp; You can use FILLED or OUTLINED bands.&amp;nbsp; You can also use a SERIES plot if you want but I would not recommend it.&amp;nbsp; Use STYLE=JOURNAL for gray scale graph with line patterns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The labels can be placed at the ends using the LABEL option.&amp;nbsp; Or, if you want the label in the middle, you can put the label in another column at a vertex in the middle with others as missing.&amp;nbsp; Then use the DATALABEL option.&amp;nbsp; Or, use a separate overlaid scatter plot with markercharacter.&amp;nbsp; Which release of SAS are you using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 00:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185595#M6835</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-01-02T00:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185596#M6836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for advice Sanjay. However, I am relatively new to the whole SAS scene and am struggling to get to grips with how to go about devising the graphs. Is there any way that a template could be devised which I could simply access and plug my values into? If not, is there any means of discussing this further e.g. over private communication so we can see how to best combat this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With regards to what release of SAS I am using, I am currently utilising version 9.3 of SAS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 02:28:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185596#M6836</guid>
      <dc:creator>motiv3</dc:creator>
      <dc:date>2014-01-02T02:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185597#M6837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a graph with simulated data and bands as shown in your graph.&amp;nbsp; Code is attached.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4694" alt="Bland-Altman.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/4694_Bland-Altman.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;The second scatter plot is used to add the band names.&amp;nbsp; You could also use a legend instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 05:20:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185597#M6837</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-01-02T05:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185598#M6838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all the help but I need a bit more help if possible. This post will be related to the Bland-Altman plot and I will make a separate post with regards to the Parkes Consensus Grid:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the Bland-Altman plot, I was wondering whether you could help me with the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) How to insert my own data. Although I know you used simulated data, I am struggling to insert my own data set within the graph. Is there any way you could alter the SAS code so I can start adding my own data. I know I am relatively new so if doing this was obvious then I apologise. If you in the code use a point such as YSI Plasma Result = 500 and Bias from YSI = 40 and another point being x= 300 and y = 100 (both made up results) then I will&amp;nbsp; be able to clearly see where to continue inserting my own data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Is there any way of changing the colour of the lines representing the criteria for 2003 and 2013? Similarly, how would I go about changing the colour of the text too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) Is there any way of changing the location of the points from a circle to say a cross?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) Is there any way to change the font size and font text for both the axis and the labels (EN ISO 15197-2003 and ISO 15197-2013)? I would like to standardise mine to Times New Roman if possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) On the axis, the grid seems to go both above 120 and below - 120 on the y axis and slight past the 600 mark on the x axis. Is there any way of removing this so that the graph margin ends at 600 on the x-axis and the origin of the graph is (0,-120) and upper border of the graph stops at (0,120)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you again for the help Sanjay!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 18:49:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185598#M6838</guid>
      <dc:creator>motiv3</dc:creator>
      <dc:date>2014-01-03T18:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185599#M6839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Once again Sanjay, thank you for the help but I am struggling to get to grips with constructing the Parkes Error Grid. Being so new to using SAS, it's a real struggle trying to construct this grid and I was wondering whether you could possibly help me formulate the SAS code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) One issue I am having is with the new region co-ordinates. I've attached the actual paper to this post (page 2 and 3 of the PDF - refer to the co-ordinates to make the grid for Type 1 Diabetes Mellitus). I just can't seem to get it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If we can devise a way to get the above co-ordinates into your SGPLOT method (as on your blog) will all the other attributes you had in your Clarkes grid be transferred over e.g. colour scheme, percentage of points within each grid? If so, could you possibly integrate this within the code for the new Parkes grid?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) I also can't seem to get my data across into the graph as points. Could you possibly in the code put in some values ive made up e.g. reference glucose = 200 and test device glucose = 400. If i can see where this data has been placed within the code, I can go from there and use my own data.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4703" alt="Co-ordinates for Parkes.jpg" class="jive-image-thumbnail jive-image jiveImage" src="https://communities.sas.com/legacyfs/online/4703_Co-ordinates for Parkes.jpg" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="4704" alt="Example of Parkes.jpg" class="jive-image jiveImage" src="https://communities.sas.com/legacyfs/online/4704_Example of Parkes.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apologies for all the questions but I really do appreciate the great help you've given me!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 19:13:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185599#M6839</guid>
      <dc:creator>motiv3</dc:creator>
      <dc:date>2014-01-03T19:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185600#M6840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think some self-study is in order.&amp;nbsp; I suggest you review the documentation for the SGPLOT procedure to get a handle of the features available to you.&amp;nbsp; I would recomment my book &lt;A href="https://support.sas.com/pubscat/bookdetails.jsp?pc=63855"&gt;SG Procedures by Example &lt;/A&gt;to get started.&amp;nbsp; You can also refer to many articles on my &lt;A href="http://communities.sas.com/r/braun.unx.sas.com/vol/vol10/dvr/FocusAreas/Graphically_Speaking/bin/copy_panelfiles_to_exp"&gt;blog&lt;/A&gt;.&amp;nbsp; While I can certainly help out on specific questions, writing up whole programs is beyond what I can do.&amp;nbsp; Maybe someone else will chime in.&amp;nbsp; Good luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 19:24:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185600#M6840</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-01-03T19:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185601#M6841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah that is fair enough Sanjay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you could possibly help with with my queries on the Bland Altman Plot and any you feel you can answer on the Parkes Error Grid then I would be extremely grateful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 19:29:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185601#M6841</guid>
      <dc:creator>motiv3</dc:creator>
      <dc:date>2014-01-03T19:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185602#M6842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data set I created for the points only has X &amp;amp; Y columns.&amp;nbsp; I assume you data is similar.&amp;nbsp; You can merge your data to the Band and labels data exactly the same way.&amp;nbsp; If you are using a group variable with band plot, the colors come from GraphData1 and GraphData2 style elements.&amp;nbsp; With SAS 9.3, you will need to derive your own style, and change these colors to the ones you want.&amp;nbsp; To use a different marker, just use MARKERATTRS=(SYMBOL=PLUS) in the scatter plot statement after the /.&amp;nbsp; Or any other supported symbol.&amp;nbsp; The space beyong 120 is the offset needed to draw a marker that may land at the edge.&amp;nbsp; Aet XAXIS or YAXIS OFFSETMIN of OFFSETMax to zero.&amp;nbsp; Note, any markers falling on the edges will be truncated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 20:06:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185602#M6842</guid>
      <dc:creator>Jay54</dc:creator>
      <dc:date>2014-01-03T20:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185603#M6843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are 2 examples created using SAS/Graph gplot - click the links to see the SAS code ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd61/hemoglobin_error_grid_info.htm" title="http://robslink.com/SAS/democd61/hemoglobin_error_grid_info.htm"&gt;http://robslink.com/SAS/democd61/hemoglobin_error_grid_info.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="hemoglobin_error_grid.png" class="jive-image-thumbnail jive-image" height="551" src="https://communities.sas.com/legacyfs/online/4709_hemoglobin_error_grid.png" width="608" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://robslink.com/SAS/democd61/clarke_error_grid_info.htm" title="http://robslink.com/SAS/democd61/clarke_error_grid_info.htm"&gt;http://robslink.com/SAS/democd61/clarke_error_grid_info.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="clarke_error_grid.png" class="jive-image-thumbnail jive-image" height="522" src="https://communities.sas.com/legacyfs/online/4710_clarke_error_grid.png" width="532" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 16:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/185603#M6843</guid>
      <dc:creator>GraphGuy</dc:creator>
      <dc:date>2014-01-06T16:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/290083#M10246</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;please see pfutzner et al. J diabetes science and technology. 2013 7(5) 1275 for coirdinates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks. &amp;nbsp;&lt;/P&gt;&lt;P&gt;Joan Lee Parkes&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2016 05:00:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/290083#M10246</guid>
      <dc:creator>Joanlee</dc:creator>
      <dc:date>2016-08-08T05:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/313007#M11009</link>
      <description>&lt;P&gt;thanks a lot for providing the reference. The code pasted was worked well.&lt;/P&gt;&lt;P&gt;I am New to SAS and facing difficulty while constructing this.could you please tell me how to get percentage for different zones.in the mentioned code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2016 10:44:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/313007#M11009</guid>
      <dc:creator>prem_sahu</dc:creator>
      <dc:date>2016-11-21T10:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/313063#M11010</link>
      <description>Hello&lt;BR /&gt;I'm not sure what u r asking. I also forwarded your message to Scott Pardo also on the original paper. He. Is the statistician.&lt;BR /&gt;</description>
      <pubDate>Mon, 21 Nov 2016 13:41:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/313063#M11010</guid>
      <dc:creator>Joanlee</dc:creator>
      <dc:date>2016-11-21T13:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/313421#M11022</link>
      <description>&lt;P&gt;Ok Thanks a lot&lt;/P&gt;</description>
      <pubDate>Tue, 22 Nov 2016 11:25:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/313421#M11022</guid>
      <dc:creator>prem_sahu</dc:creator>
      <dc:date>2016-11-22T11:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/313502#M11024</link>
      <description>Joan,&lt;BR /&gt;&lt;BR /&gt;He seems to be confused. He first asks how to draw the zone boundaries, and I guess he figured that out. But he wants to know how to compute the percentages of points falling in each zone. He will need to have code that checks every point to determine in which zone it lies. Then he will need code to count the number of points in each zone. It’s not an easy programing task; you need to check a lot of boundaries. It would be particularly difficult in SAS.&lt;BR /&gt;&lt;BR /&gt;I do not know if this helps.&lt;BR /&gt;&lt;BR /&gt;Bye for now,&lt;BR /&gt;&lt;BR /&gt;Scott P.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt; On Nov 21, 2016, at 8:39 AM, Joan wrote:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Do u understand his question&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Sent from my iPad&lt;BR /&gt;&amp;gt; Joan Lee Parkes, PhD&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; Begin forwarded message:&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; From: SAS Support Communities&lt;BR /&gt;&amp;gt;&amp;gt; Date: November 21, 2016 at 5:44:55 AM EST&lt;BR /&gt;&amp;gt;&amp;gt; To: joanleeparkes@gmail.com&lt;BR /&gt;&amp;gt;&amp;gt; Subject: Re: How to draw a Parkes (Consensus) Error Grid?&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; Hi Joanlee,&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; prem_sahu (New User) posted a new reply in SAS/GRAPH and ODS Graphics on 11-21-2016 05:44 AM :&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; Re: How to draw a Parkes (Consensus) Error Grid?&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; thanks a lot for providing the reference. The code pasted was worked well.&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; I am New to SAS and facing difficulty while constructing this.could you please tell me how to get percentage for different zones.in the mentioned code.&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; Reply | Like this message&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; SAS Support Communities sent this message to joanleeparkes@gmail.com.&lt;BR /&gt;&amp;gt;&amp;gt; You are receiving this email because a new message matches your subscription to a topic.&lt;BR /&gt;&amp;gt;&amp;gt;&lt;BR /&gt;&amp;gt;&amp;gt; To control which emails we send you please go to, manage your subscription &amp;amp; notification settings or unsubscribe.&lt;BR /&gt;&amp;gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 22 Nov 2016 15:48:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/313502#M11024</guid>
      <dc:creator>Joanlee</dc:creator>
      <dc:date>2016-11-22T15:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/813979#M22831</link>
      <description>&lt;P&gt;Consensus Error Grid&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*产生样本数据*/
data have;
  pi=constant('PI');
  call streaminit(123);
    do i=1 to 500;
      x=40+30*ranuni(2);  y=40+40*ranuni(2); output;
    end;

    /*--Add data all over--*/
    do i=1 to 100;
      x=550*ranuni(2);  y=550*ranuni(2); output;
    end;

    /*--Add data in the middle fan--*/
    do i=1 to 2000;
      x=40+360*ranuni(2);  
	  y=x+(x-50)*2*tan(pi/4 *ranuni(2) -pi/8);
	  y=ifn(y&amp;gt;550 or y&amp;lt;0, ., y);
      output;
    end;
 keep x y;
run;












/*画图*/
/*--Generate grid and point data--*/
data Grid;
input  id rfbg  sbg;
cards;
11 50 0
11 50 30
11 90 80
11 330 230
11 550 450
12 0 50
12 30 50
12 230 330
12 440 550
21 90 0
21 260 130
21 550 250
22 0 60
22 30 60
22 280 550
31 250 0
31 250 40
31 410 110
31 550 160
32 0 80
32 25 80
32 35 90
32 125 550
41 0 200
41 35 200
41 50 550
;
run;
data label;
    xl=320; yl=280; label='A';  output;
    xl=280; yl=320; label='A';  output;
    xl=370; yl=220; label='B';  output;
    xl=220; yl=370; label='B';  output;
    xl=400; yl=140; label='C';  output;
    xl=140; yl=400; label='C'; output;
    xl=420; yl=70; label='D'; output;
    xl=70; yl=420; label='D';output;
    xl=20; yl=430; label='E';output;
run;
/*--Add data points--*/
data Plot;
  set grid have label;
run;
/*--Draw the grid--*/
ods html dpi=300;
ods graphics / reset antialiasmax=5700 ;
proc sgplot data=Plot noautolegend aspect=1;
  lineparm x=0 y=0 slope=1/lineattrs=(pattern=dash color=gray);
  series x=rfbg y=sbg / group=id lineattrs=(color=gray ) nomissinggroup;
  scatter x=x y=y /  markerattrs=(symbol=circlefilled size=2 color=black) transparency=0.5;
  scatter x=xl y=yl / markerchar=label markercharattrs=(size=12);
  xaxis values=(0 to 550 by 50) offsetmin=0 offsetmax=0 label='Reference Blood Glucose';
  yaxis values=(0 to 550 by 50) offsetmin=0 offsetmax=0 label='Sensor Blood Glucose';
  run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71596i40613E5532929FB7/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot.png" alt="SGPlot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 02:41:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/813979#M22831</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-05-18T02:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/814254#M22833</link>
      <description>&lt;P&gt;To complete Consensus Error Grid to calculate percent in each area . I rescue to PROC GINSIDE. This PROC is awesome.&lt;/P&gt;
&lt;P&gt;NOTE:&amp;nbsp; unit is (mg/dL)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*产生样本数据*/
data have;
  pi=constant('PI');
  call streaminit(123);
    do i=1 to 500;
      x=40+30*ranuni(2);  y=40+40*ranuni(2); output;
    end;

    /*--Add data all over--*/
    do i=1 to 100;
      x=550*ranuni(2);  y=550*ranuni(2); output;
    end;

    /*--Add data in the middle fan--*/
    do i=1 to 2000;
      x=40+360*ranuni(2);  
	  y=x+(x-50)*2*tan(pi/4 *ranuni(2) -pi/8);
	  y=ifn(y&amp;gt;550 or y&amp;lt;0, ., y);
      output;
    end;
 keep x y;
run;












/*画图*/
/*--Generate grid and point data--*/
data map;
input  id $ x y;
cards;
B_L 50 0
B_L 50 30
B_L 90 80
B_L 330 230
B_L 550 450
B_L 550 250
B_L 260 130
B_L 90 0
C_L  90 0
C_L  260 130
C_L  550 250
C_L  550 160
C_L  410 110
C_L  250 40
C_L  250 0
D_L  250 0
D_L  250 40
D_L  410 110
D_L  550 160
D_L  550 0
A 50 0
A 50 30
A 90 80
A 330 230
A 550 450
A 550 550
A 440 550
A 230 330
A 30 50
A 0 50
A 0 0
B_U 0 50
B_U 30 50
B_U 230 330
B_U 440 550
B_U 280 550
B_U 30 60
B_U 0 60
C_U 0 60
C_U 30 60
C_U 280 550
C_U  125 550
C_U  35 90
C_U  25 80
C_U  0 80
D_U 0 80
D_U 25 80
D_U 35 90
D_U 125 550
D_U 50 550
D_U 35 200
D_U 0 200
E 0 200
E 35 200
E 50 550
E 0 550
;
run;

/*判断点在哪个区域*/
proc ginside data=have map=map out=id INCLUDEBORDER;
  id id ;
run;
data id;
 set id;
 id=scan(id,1,'_');
run;
proc freq data=id ;
table id;
run;

data Grid;
input  id2 rfbg  sbg;
cards;
11 50 0
11 50 30
11 90 80
11 330 230
11 550 450
12 0 50
12 30 50
12 230 330
12 440 550
21 90 0
21 260 130
21 550 250
22 0 60
22 30 60
22 280 550
31 250 0
31 250 40
31 410 110
31 550 160
32 0 80
32 25 80
32 35 90
32 125 550
41 0 200
41 35 200
41 50 550
;
run;
data label;
    xl=320; yl=280; label='A';  output;
    xl=280; yl=320; label='A';  output;
    xl=370; yl=220; label='B';  output;
    xl=220; yl=370; label='B';  output;
    xl=400; yl=140; label='C';  output;
    xl=140; yl=400; label='C'; output;
    xl=420; yl=70; label='D'; output;
    xl=70; yl=420; label='D';output;
    xl=20; yl=430; label='E';output;
run;
/*--Add data points--*/
data Plot;
  set grid id label;
run;


/*--Attributes Map for zones--*/
data attrmap;
  length id $1 value $1 markercolor $10;
  id='A'; value='A'; markercolor='cx00afdf'; linecolor='cx00afdf'; output;
  id='A'; value='B'; markercolor='cx00ef7f'; linecolor='cx00ef7f'; output;
  id='A'; value='C'; markercolor='gray'; linecolor='gray'; output;
  id='A'; value='D'; markercolor='pink'; linecolor='pink'; output;
  id='A'; value='E'; markercolor='red'; linecolor='red'; output;
run;


/*--Draw the grid--*/
ods html dpi=300;
ods graphics / reset antialiasmax=5700 ;
proc sgplot data=Plot noautolegend aspect=1 dattrmap=attrmap;
  lineparm x=0 y=0 slope=1/lineattrs=(pattern=dash color=gray );
  series x=rfbg y=sbg / group=id2 lineattrs=(color=gray ) nomissinggroup;
  scatter x=x y=y /  markerattrs=(symbol=circlefilled size=2 ) group=id attrid=A;
  scatter x=xl y=yl / markerchar=label markercharattrs=(size=12);
  xaxis values=(0 to 550 by 50) offsetmin=0 offsetmax=0 label='Reference Blood Glucose';
  yaxis values=(0 to 550 by 50) offsetmin=0 offsetmax=0 label='Sensor Blood Glucose';
  run;


&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1652953389647.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71626i6C8BF500156430B7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1652953389647.png" alt="Ksharp_0-1652953389647.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SGPlot.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/71627iEB67A86378EB7F5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot.png" alt="SGPlot.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 12:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/814254#M22833</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-22T12:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to draw a Parkes (Consensus) Error Grid?</title>
      <link>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/815001#M22853</link>
      <description>&lt;P&gt;Here is&amp;nbsp;Clark Error Grid Graph by using PROC GINSIDE .&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;NOTE:&amp;nbsp; unit is (mg/dL)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/*产生样本数据*/
data have;
  pi=constant('PI');
  call streaminit(123);
    do i=1 to 500;
      x=40+30*ranuni(2);  y=40+40*ranuni(2); output;
    end;

    /*--Add data all over--*/
    do i=1 to 100;
      x=400*ranuni(2);  y=400*ranuni(2); output;
    end;

    /*--Add data in the middle fan--*/
    do i=1 to 5000;
      x=40+360*ranuni(2);  
	  y=x+(x-50)*2*tan(pi/4 *ranuni(2) -pi/8);
	  y=ifn(y&amp;gt;400 or y&amp;lt;0, ., y);
      output;
    end;
	x=70;y=84;output;
    x=70;y=56;output;
 keep x y;
run;










/*画图*/
/*--Generate grid and point data--*/
data map;
infile cards expandtabs;
input n id $ x y;
cards;
1	E_L 180 0
2	E_L 180 70
3	E_L 400 70
4	E_L 400 0
40	E_U 0 180
41	E_U 70 180
42	E_U 70 400
43	E_U 0 400
8	D_L  240 70
9	D_L  240 180
10	D_L  400 180
11	D_L  400 70
35	D_U 0 70
36	D_U 58.3 70
37	D_U 70 84
38	D_U 70 180
39	D_U 0 180
5	C_L  130 0
6	C_L  180 70
7	C_L  180 0
32	C_U 70 180
33	C_U 290 400
34	C_U 70 400
12	B_L  70 0
13	B_L  70 56
14	B_L  400 320
15	B_L  400 180
16	B_L  240 180
17	B_L  240 70
18	B_L  180 70
19	B_L  130 0
28	B_U 70 84
29	B_U 333 400
30	B_U 290 400
31	B_U 70 180
20	A 0 0
21	A 0 70
22	A 58.3 70
23	A 333 400
24	A 400 400
25	A 400 320
26	A 70 56
27	A 70 0
;
run;
data map;
 set map;
 if n in (23 29) then x=400/1.2 ;
 if n in (22 36) then x=70/1.2 ;
 drop n;
run;



/*判断点在哪个区域*/
proc ginside data=have map=map out=id INCLUDEBORDER;
  id id ;
run;
data id;
 set id;
 id=scan(id,1,'_');
run;


proc freq data=id ;
table id/out=zone;
run;

%let A=0.00;
%let B=0.00;
%let C=0.00;
%let D=0.00;
%let E=0.00;

%let count_A=0;
%let count_B=0;
%let count_C=0;
%let count_D=0;
%let count_E=0;

data _null_;
 set zone;
 if not missing(id) then do;
  call symputx(id,put(PERCENT,8.2));
  call symputx(cats('count_',id),COUNT);
 end;
run;



data Grid;
  /*--Zone A--*/
  id2=11; rfbg2=70;  sbg2=0; output;
  id2=11; rfbg2=70;  sbg2=56; output;
  id2=12; rfbg2=58.3;sbg2=70; output;
  id2=12; rfbg2=0;   sbg2=70; output;
  id2=13; rfbg2=70;   sbg2=84; output;
  id2=13; rfbg2=70;   sbg2=180; output;
  id2=13; rfbg2=0;   sbg2=180; output;

  /*--Zone E - Y--*/
  id2=3; rfbg2=70;  sbg2=180; output;
  id2=3; rfbg2=70;  sbg2=400; output;
  id2=3; rfbg2=0;   sbg2=400; output;
  /*--Zone E - X--*/
  id2=4; rfbg2=180;  sbg2=0; output;
  id2=4; rfbg2=180;  sbg2=70; output;
  id2=4; rfbg2=400;  sbg2=70; output;
  /*--Zone D - X--*/
  id2=5; rfbg2=240;  sbg2=70; output;
  id2=5; rfbg2=240;  sbg2=180; output;
  id2=5; rfbg2=400;  sbg2=180; output;
  /*--Zone C - Low--*/
  id2=6; rfbg2=130;  sbg2=0; output;
  id2=6; rfbg2=180;  sbg2=70; output;
  /*--Zone C - High--*/
  id2=7; rfbg2=70;  sbg2=180; output;
  id2=7; rfbg2=290; sbg2=400; output;
  /*--Zone B - High--*/
  id2=8; rfbg2=58.3; sbg2=70; output;
  id2=8; rfbg2=333.3;  sbg2=400; output;
  /*--Zone B - Low--*/
  id2=9; rfbg2=70;   sbg2=56; output;
  id2=9; rfbg2=400; sbg2=320; output;
  run;

data label;
length label $ 40;
    xl=20; yl=20; label='A';   output;
    xl=20; yl=120; label='D';  output;
    xl=20; yl=300; label='E';   output;
    xl=100; yl=20; label='B';   output;
    xl=160; yl=20; label='C';   output;
    xl=100; yl=160; label='B';   output;
    xl=320; yl=20; label="E(&amp;amp;count_E.,&amp;amp;E.%)";   output;
    xl=320; yl=120; label="D(&amp;amp;count_D.,&amp;amp;D.%)";  output;
    xl=320; yl=200; label="B(&amp;amp;count_B.,&amp;amp;B.%)" ; output;
    xl=340; yl=340; label="A(&amp;amp;count_A.,&amp;amp;A.%)" ; output;
    xl=120; yl=320; label="C(&amp;amp;count_C.,&amp;amp;C.%)" ; output;
run;


data plot;
 set Grid id label;
run;

/*--Attributes Map for zones--*/
data attrmap;
  length id $1 value $1 markercolor $10;
  id='A'; value='A'; markercolor='cx00afdf'; linecolor='cx00afdf'; output;
  id='A'; value='B'; markercolor='cx00ef7f'; linecolor='cx00ef7f'; output;
  id='A'; value='C'; markercolor='gray'; linecolor='gray'; output;
  id='A'; value='D'; markercolor='pink'; linecolor='pink'; output;
  id='A'; value='E'; markercolor='red'; linecolor='red'; output;
run;


/*--Draw the grid--*/
ods graphics / reset antialiasmax=5700 ;
proc sgplot data=plot noautolegend aspect=1 dattrmap=attrmap;
  scatter x=x y=y / attrid=A group=id  markerattrs=(symbol=circlefilled size=3 ) ;
  scatter x=xl y=yl / markerchar=label markercharattrs=(size=12)  ;
    series x=rfbg2 y=sbg2 / group=id2 lineattrs=(color=gray ) nomissinggroup;

  xaxis values=(0 to 400 by 50) offsetmin=0 offsetmax=0 label='Reference Blood Glucose';
  yaxis values=(0 to 400 by 50) offsetmin=0 offsetmax=0 label='Sensor Blood Glucose';
  run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Clark Error Grid" style="width: 640px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/72539iF6195FB68E22D782/image-size/large?v=v2&amp;amp;px=999" role="button" title="SGPlot.png" alt="Clark Error Grid" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Clark Error Grid&lt;/span&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 12:32:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Graphics-Programming/How-to-draw-a-Parkes-Consensus-Error-Grid/m-p/815001#M22853</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2022-06-22T12:32:49Z</dc:date>
    </item>
  </channel>
</rss>

