<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: GGPlot Examples Best Reference	</title>
	<atom:link href="https://www.datanovia.com/en/blog/ggplot-examples-best-reference/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.datanovia.com/en/blog/ggplot-examples-best-reference/</link>
	<description>Data Mining and Statistics for Decision Support</description>
	<lastBuildDate>Wed, 25 Dec 2019 08:55:48 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.2</generator>
	<item>
		<title>
		By: kassambara		</title>
		<link>https://www.datanovia.com/en/blog/ggplot-examples-best-reference/#comment-1733</link>

		<dc:creator><![CDATA[kassambara]]></dc:creator>
		<pubDate>Tue, 26 Feb 2019 18:16:57 +0000</pubDate>
		<guid isPermaLink="false">https://www.datanovia.com/en/?p=8421#comment-1733</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.datanovia.com/en/blog/ggplot-examples-best-reference/#comment-1732&quot;&gt;sfer&lt;/a&gt;.

Thank Sfer for your feedback!

Please try the following R code:

&lt;pre class=&quot;r_code&quot;&gt;
library(&quot;ggpubr&quot;)
ggplot(mtcars, aes(mpg, wt)) +
  geom_point() +
  geom_smooth(method = lm) +
  stat_cor(
    aes(label = paste(..r.label.., ..rr.label.., ..p.label.., sep = &quot;~`,`~&quot;)),
    method = &quot;pearson&quot;, label.x = 20
    )
&lt;/pre&gt;

The output should look like this:

&lt;img src=&quot;https://www.datanovia.com/en/wp-content/uploads/2019/02/Scatter-plot-with-r-sqaured-and-p-value.png&quot; alt=&quot;Scatter Plot with R, R2 and p-value&quot; /&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.datanovia.com/en/blog/ggplot-examples-best-reference/#comment-1732">sfer</a>.</p>
<p>Thank Sfer for your feedback!</p>
<p>Please try the following R code:</p>
<pre class="r_code">
library("ggpubr")
ggplot(mtcars, aes(mpg, wt)) +
  geom_point() +
  geom_smooth(method = lm) +
  stat_cor(
    aes(label = paste(..r.label.., ..rr.label.., ..p.label.., sep = "~`,`~")),
    method = "pearson", label.x = 20
    )
</pre>
<p>The output should look like this:</p>
<p><img src="https://www.datanovia.com/en/wp-content/uploads/2019/02/Scatter-plot-with-r-sqaured-and-p-value.png" alt="Scatter Plot with R, R2 and p-value" /></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: sfer		</title>
		<link>https://www.datanovia.com/en/blog/ggplot-examples-best-reference/#comment-1732</link>

		<dc:creator><![CDATA[sfer]]></dc:creator>
		<pubDate>Tue, 26 Feb 2019 17:57:32 +0000</pubDate>
		<guid isPermaLink="false">https://www.datanovia.com/en/?p=8421#comment-1732</guid>

					<description><![CDATA[Kassambara 
 - thanks for this great reference!.

Q:
In the 1st example,
what would the code be 
to print (as top legend):
    R and R2 and P ?
(right now, the ex. only shows: R and P...).

Thanks,
SFer
San Francisco
--]]></description>
			<content:encoded><![CDATA[<p>Kassambara<br />
 &#8211; thanks for this great reference!.</p>
<p>Q:<br />
In the 1st example,<br />
what would the code be<br />
to print (as top legend):<br />
    R and R2 and P ?<br />
(right now, the ex. only shows: R and P&#8230;).</p>
<p>Thanks,<br />
SFer<br />
San Francisco<br />
&#8212;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: SFer		</title>
		<link>https://www.datanovia.com/en/blog/ggplot-examples-best-reference/#comment-1731</link>

		<dc:creator><![CDATA[SFer]]></dc:creator>
		<pubDate>Tue, 26 Feb 2019 17:40:46 +0000</pubDate>
		<guid isPermaLink="false">https://www.datanovia.com/en/?p=8421#comment-1731</guid>

					<description><![CDATA[Kassambara 
 - thanks for this great reference!.

Q:
In the 1st example,
what would the code be 
to print (as top legend):
R and R2 and p ?
(right now, the ex. only shows R and P...).

Thanks,
SFer]]></description>
			<content:encoded><![CDATA[<p>Kassambara<br />
 &#8211; thanks for this great reference!.</p>
<p>Q:<br />
In the 1st example,<br />
what would the code be<br />
to print (as top legend):<br />
R and R2 and p ?<br />
(right now, the ex. only shows R and P&#8230;).</p>
<p>Thanks,<br />
SFer</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 108/175 objects using Memcached
Page Caching using Disk: Enhanced 
Lazy Loading (feed)
Database Caching 40/62 queries in 0.079 seconds using APC

Served from: www.datanovia.com @ 2025-07-24 08:46:19 by W3 Total Cache
-->