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

Incorrect figure #1

Open
amingson opened this issue May 2, 2023 · 2 comments
Open

Incorrect figure #1

amingson opened this issue May 2, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@amingson
Copy link

amingson commented May 2, 2023

Dear author!
Thank you for sharing such a useful package!!!!

when i run 7.4 examples example1 code ::

test

cor_data <- cor(mtcars) %>%
data.frame() %>%
mutate(x = rownames(.)) %>%
melt(.,id.vars = "x")

cor_data <- cor_data %>% filter(variable %in% c('mpg','cyl','disp','hp'))

add some value

cor_data$value2 <- rev(cor_data$value)
cor_data$value3 <- runif(44,min = -1,max = 1)
cor_data$value4 <- runif(44,min = -1,max = 1)

ggplot(cor_data,
aes(x = x,y = variable)) +
geom_jjtriangle(aes(fill = value),type = 'ul') +
scale_fill_gradient(low = '#FFCC33',high = '#99CC33') +

new legend

new_scale_fill() +
geom_jjtriangle(aes(fill = value2),type = 'br') +
scale_fill_gradient(low = '#66CCCC',high = '#FF3399') +
coord_fixed()

I got a different figure !!!!
I hope I can get your help, thanks!

@amingson
Copy link
Author

amingson commented May 2, 2023

作者您好!
就是我参考手册运行代码的时候,出现了不正确的显示结果,如图
image
希望能够得到您的帮助!感谢。

@junjunlab
Copy link
Owner

已经修复,重新安装即可。

@junjunlab junjunlab added the bug Something isn't working label May 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants