Specifying Correlation strength prior to plotting using corrr
<p>I have a data frame of correlations where I'm trying to only sow the correlations above 10%
I want to then plot this using the <code>corrr</code> package</p>

<p>I take the correlation of my data set, then filter to where the absolute value is >.1 but it fails on the network plot segment</p>

<blockquote>
  <p>Error in UseMethod("network_plot") : 
    no applicable method for 'network_plot' applied to an object of class "c('tbl_df', 'tbl', 'data.frame')"</p>
</blockquote>

<pre><code>library(tidyverse)
library(corrr)

# Create the Dataframe
mydf &lt;- data.frame(a=sample(rnorm(n = 100,sd = 15),replace=TRUE),
                   b=sample(rnorm(n = 100,sd = 15),replace=TRUE),
                   c=sample(rnorm(n = 100,sd = 15),replace=TRUE),
                   d=sample(rnorm(n = 100,sd = 15),replace=TRUE),
                   e=sample(rnorm(n = 100,sd = 15),replace=TRUE),
                   f=sample(rnorm(n = 100,sd = 15),replace=TRUE))


test &lt;- mydf %&gt;% 
  correlate(method = "spearman") %&gt;% 
  gather("n", "corr", 2:7, na.rm = TRUE) %&gt;% 
  filter(abs(corr) &gt; 0.1) %&gt;% 
  spread(rowname,corr) %&gt;%
  network_plot(legend = TRUE)
</code></pre>

<p>I see in the <a href="https://github.com/drsimonj/corrr" rel="nofollow noreferrer">documentation</a> for the package that you can specify the correlations you wish to visualize, however that seems to still print the labels even if i have asked for them not to be included which is why I went down the gather/spread route</p>

<pre><code>  network_plot(min_cor = .2, legend = TRUE)
</code></pre>

<p>Thank you for your time</p>