Git Product home page Git Product logo

Comments (2)

DominiqueMakowski avatar DominiqueMakowski commented on June 8, 2024

Hi Mark,

You can customize the legend and change the orientation by overwriting some ggplot specifications:

library(ggplot2)
#> Warning: package 'ggplot2' was built under R version 4.2.2
library(correlation)

mtcars |> 
  correlation() |> 
  summary() |> 
  plot() +
  scale_fill_gradient2(low = "purple", high="green") +
  scale_y_discrete(limits = rev)
#> Scale for fill is already present.
#> Adding another scale for fill, which will replace the existing scale.
#> Scale for y is already present.
#> Adding another scale for y, which will replace the existing scale.

Created on 2023-05-08 by the reprex package (v2.0.1)

Hope that helps!

from correlation.

MarkKramer avatar MarkKramer commented on June 8, 2024

Brilliant, this is exactly what I was looking for. The next question is: I then plotted the correlation for some of the relationships using:
plot(cor_test(ROM_PF_left, "PF_LLLI","PF_LLSJ")) +
theme_bw()
I am trying to increase the marker size and color, but nothing seems to alter the marker size. I tried using "cex=3" but this was not effective. Are there any suggestions?
I also tried creating another layer using "geom_point", which works, but if I change the alpha level, the dots from the original layer are visible.
Correlation1

from correlation.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.