Comments (7)
Oh, I should add something that does work, if I'm willing to use one of the built-in palettes.
animate(peng_scaled,
tour_path = guided_tour(holes()),
display = display_xy(col = peng$species,
palette = "Roma",
cex = 1.5))
from tourr.
Hi Michael,
Apologies for the delay in responding. I'm actively working the code at the moment, with fixes required by CRAN, and based on new work.
It was deliberate to have this distinction, and only put the legend if a variable is used. And expect the palette to specify colours. If colours are specified entirely by setting the col value it's difficult to know what label to apply.
Your idea of using the palette= might be workable!
from tourr.
Oh, that was easy - it should work now, eg
animate_xy(flea[,1:6], col=flea$species, palette=c("#F89D38", "#9A78B8", "#73C05B" ))
from tourr.
Great! I thought that shouldn't be hard.
But what about pch
?
If I try to also set pch
, I get the correct point symbols in the plot, but not in the legend
animate(peng_scaled,
tour_path = grand_tour(d=2),
display = display_xy(col = peng$species,
palette = peng.colors("dark"),
pch = 15:17,
cex = 1.2))
PS: I like the new guided_anomaly_tour
!
from tourr.
Oh, you are quick to see the new projection pursuit index! I think it might finally be working this morning.
The shapes palette control has been implemented now, try:
animate_xy(flea[, -7], col = flea$species, pch = flea$species, shapeset=c(1,2,3))
from tourr.
Thanks for your suggestion Michael, I'm closing this issue as fixed now.
from tourr.
Thanks for all your help! I'm enjoying playing with tourr
from tourr.
Related Issues (20)
- Option tourr.verbose HOT 13
- The initial projection is not properly recorded in save_history HOT 1
- Unexpected behaviour in frozen_tour() HOT 2
- plotting labels on axes causes a pause and slowdown for lots of variables.
- guided_tour HOT 2
- Frame interpolation instead of plane interpolation question HOT 4
- Error when using render with guided tour HOT 2
- render_gif generates an error when generated frames are less than the frames argument specified
- Python equivalent of tourr? HOT 2
- Animations in Jupyter Notebook / Lab (with IRKernel) not working HOT 2
- Add colour legend, and also index value to displays
- Dependence tour
- add label option
- allow to control axes `col` & `lwd` HOT 1
- No documentation for `guided_anomaly_tour()` HOT 1
- reduce time taken for some example code - as from the CRAN report
- example usage for search_polish
- the ending basis in the interpolation
- add more information for dcor2d and splines2d functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tourr.