Giter VIP home page Giter VIP logo

Comments (8)

barveaditya avatar barveaditya commented on June 15, 2024 1

@johnmackintosh oh that does it, than you very much. Thanks for all the help! :)

from rockthemes.

StatsGary avatar StatsGary commented on June 15, 2024

Do you have the remotes package installed in R?

from rockthemes.

johnmackintosh avatar johnmackintosh commented on June 15, 2024

@barveaditya

Hi, thanks for your comments :)

Looks like remotes is trying to install from the master branch.

Unfortunately, there is no 'master' branch, it's 'main'.

If you update to the latest version of the {remotes} package, it should find the 'main' branch.

See :
https://twitter.com/grrrck/status/1350504524901920773?s=19

Alternatively
remotes::install_github('johnmackintosh/rockthemes@main')

from rockthemes.

barveaditya avatar barveaditya commented on June 15, 2024

@johnmackintosh .. perfect .. that worked.

However, something occurred to me after is that I need to make a continuous color gradient, and that could not! :( Rather, I do not now how to convert a 10 color scale to a continuous one (n = 256). Any help would be great! Rock and metal has place in science! ;)

from rockthemes.

johnmackintosh avatar johnmackintosh commented on June 15, 2024

@barveaditya
Do you have a reprex you could share?

I can get something to work with the standard 4 colour palettes.
Will try with the ten tone palettes in a bit

library(ggplot2)
library(rockthemes)
 
df <- data.frame(
  x = runif(1000),
  y = runif(1000),
  z1 = rnorm(1000),
  z2 = abs(rnorm(1000)),
  temp = c(1:999, by = 1)
)
 
 
ggplot(df, aes(x, y)) +
  geom_point(aes(colour = temp)) +
  scale_colour_gradientn(colours = rock_palette('nodoubt', 256, type = 'continuous'))


from rockthemes.

johnmackintosh avatar johnmackintosh commented on June 15, 2024
ggplot(df, aes(x, temp)) +
geom_point(aes(colour = temp)) +
scale_colour_deelite(type = 'continuous') + 
theme_minimal()


from rockthemes.

johnmackintosh avatar johnmackintosh commented on June 15, 2024

image

from rockthemes.

johnmackintosh avatar johnmackintosh commented on June 15, 2024

closing this one, but need to tweak the individual palettes so #14 awaits

from rockthemes.

Related Issues (5)

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.