I'm scrambling to come up with a solution to my issue. I'm attempting to create a graph that only contains a particular amount of correlation. Since I don't know how to filter with ggraph, I considered changing my matrix's values to a 0 instead. Here's how I move forward:

matrix[matrix== 1] = 0.00 #substitute 0 for 1

Replace any values below 0.27 in matrix[matrix= 0.27] with zero.

The issue is that this turns my vectors into atomic vectors, which obstructs the graph's formation. I wrote some code to replicate the issue:

M1 = as tibble(21,sample(1:3,100),rep=TRUE))

M2 is equal to as.matrix(round(cor(M1[,],method="kendall"),2)

M2[,2] <- 0.09

M2[M2 == 1] <- 0.00

M2[M2 <= 0 .10] <- 0
Jul 5, 2022 318 views

## How can I delete multiple values from a vector in R?

The %in% operator tells  which elements are ...READ MORE

## How can I control the size of points in an R scatterplot?

plot(variable, type='o' , pch=5, cex=.3) The pch argument ...READ MORE

## How can I import a file in R without giving the destination/file path to the specified file?

You can use the window explorer to ...READ MORE

## How can I create a correlation matrix in R?

An example, d <- data.frame(x1=rnorm(10), ...READ MORE

## R function for finding the index of an element in a vector?

The function match works on vectors : x <- sample(1:10) x # ...READ MORE

## How can I select a CRAN mirror in R ?

There are many ways of doing so ...READ MORE

## Big Data transformations with R

Dear Koushik, Hope you are doing great. You can ...READ MORE