Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't download:HTTP error 404. #13

Closed
barveaditya opened this issue Jan 21, 2021 · 8 comments
Closed

Can't download:HTTP error 404. #13

barveaditya opened this issue Jan 21, 2021 · 8 comments

Comments

@barveaditya
Copy link

I love the palettes you have. However, ON doing
remotes::install_github('johnmackintosh/rockthemes')

I keep getting the following:
Error: Failed to install 'unknown package' from GitHub:
HTTP error 404.
No commit found for the ref master

Did you spell the repo owner (johnmackintosh) and repo name (rockthemes) correctly?

  • If spelling is correct, check that you have the required permissions to access the repo.
@StatsGary
Copy link
Contributor

Do you have the remotes package installed in R?

@johnmackintosh
Copy link
Owner

johnmackintosh commented Jan 22, 2021

@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')

@barveaditya
Copy link
Author

@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! ;)

@johnmackintosh
Copy link
Owner

johnmackintosh commented Jan 22, 2021

@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'))


@johnmackintosh
Copy link
Owner

johnmackintosh commented Jan 22, 2021

ggplot(df, aes(x, temp)) +
geom_point(aes(colour = temp)) +
scale_colour_deelite(type = 'continuous') + 
theme_minimal()


@johnmackintosh
Copy link
Owner

image

@barveaditya
Copy link
Author

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

@johnmackintosh
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants