-
Notifications
You must be signed in to change notification settings - Fork 12
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
adding custom layer to existing cranvasplot object #191
Comments
some ideas:
|
This lightweight example illustrates how qscatter could be reorganized to allow default event handlers to be extended by a new custom interaction layer.
Example 1: using existing
|
see #202 this works: qiris <- qdata(iris)
test <- qscatter(data = qiris, x= Sepal.Length, y = Sepal.Width )
myPress <- function(layer, event){
print(event)
print('press')
}
myRel <- function(layer, event){
print(event)
print('release')
}
register_handlers(test, keypress = list(myPress),
keyrelease = list(myRel), add = TRUE)
test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there a way to add custom interaction to a CranvasPlot object without destroying existing interactions?
In the example provided the added layer seems to destroy the brushing interaction...
The text was updated successfully, but these errors were encountered: