great-northern-diver / loon

A Toolkit for Interactive Statistical Data Visualization
http://great-northern-diver.github.io/loon/
GNU General Public License v2.0
48 stars 16 forks source link

Can you do a 3d plot in tcl tk? #11

Closed chriskuchar closed 5 years ago

chriskuchar commented 6 years ago

I would like to make a 3d scatterplot in tcl, that I can attach to a loon inspector. I have been researching all across the internet if you can even do a 3d scatterplot in loon, but I haven't found anything. Is a 3d scatterplot possible in tcl tk? Or, is it possible to attach a loon inspector to the 3d plotting that R has, through the package rgl?

Thanks, Chris

waddella commented 6 years ago

Hi Chris,

Sorry for the late reply. Currently loon has no 3d scatterplot. If you find a way to make a 3d scatterplots in Tcl/Tk then it is possible to make a loon inspector for it. Making custom loon inspectors is not documented yet, but I plan to do that in the next few months.

I leave this issue open until the inspector documentation is there. If you find a way to do 3d scatterplot with Tk then please post it here and we can take a look at it. You could also write a 3d scatterplot matrix from scratch, but might be a bit involved. For example, have a look at the scatterplo3d R package.

Best, Adrian

rwoldford commented 5 years ago

This is done in 1.2.2 as l_plot3D It will be available in the next CRAN release. It's on my fork at the moment.

chriskuchar commented 5 years ago

When is this release coming out?

On Thu, Mar 7, 2019 at 9:47 PM R. Wayne Oldford notifications@github.com wrote:

This will be available in the next release. The function is l_plot3D in R

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/waddella/loon/issues/11#issuecomment-470803647, or mute the thread https://github.com/notifications/unsubscribe-auth/AXdIAfqtSK_D9_IC6pUwRdxsGRVRkBycks5vUetegaJpZM4TcLau .

rwoldford commented 5 years ago

As soon as Adrian does a pull from my fork and submits to cran. You can install from my fork if you’re in a hurry

On Mar 11, 2019, at 5:37 PM, Chris Beckett notifications@github.com wrote:

When is this release coming out?

On Thu, Mar 7, 2019 at 9:47 PM R. Wayne Oldford notifications@github.com wrote:

This will be available in the next release. The function is l_plot3D in R

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/waddella/loon/issues/11#issuecomment-470803647, or mute the thread https://github.com/notifications/unsubscribe-auth/AXdIAfqtSK_D9_IC6pUwRdxsGRVRkBycks5vUetegaJpZM4TcLau .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.

waddella commented 5 years ago

I will try to merge it this weekend.

rwoldford commented 5 years ago

Check out https://youtu.be/mMJllGOuDLY


R.W. Oldford http://www.stats.uwaterloo.ca/~rwoldfor


From: Chris Beckett notifications@github.com<mailto:notifications@github.com> Reply-To: waddella/loon reply@reply.github.com<mailto:reply@reply.github.com> Date: Monday, March 11, 2019 at 5:37 PM To: waddella/loon loon@noreply.github.com<mailto:loon@noreply.github.com> Cc: "R.W. Oldford" rwoldford@uwaterloo.ca<mailto:rwoldford@uwaterloo.ca>, Comment comment@noreply.github.com<mailto:comment@noreply.github.com> Subject: Re: [waddella/loon] Can you do a 3d plot in tcl tk? (#11)

When is this release coming out?

On Thu, Mar 7, 2019 at 9:47 PM R. Wayne Oldford notifications@github.com<mailto:notifications@github.com> wrote:

This will be available in the next release. The function is l_plot3D in R

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/waddella/loon/issues/11#issuecomment-470803647, or mute the thread https://github.com/notifications/unsubscribe-auth/AXdIAfqtSK_D9_IC6pUwRdxsGRVRkBycks5vUetegaJpZM4TcLau .

— You are receiving this because you commented. Reply to this email directly, view it on GitHubhttps://github.com/waddella/loon/issues/11#issuecomment-471740091, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ABzJE7pxuJVDNIInOKJ_fKypgkAksF3gks5vVsyegaJpZM4TcLau.

chriskuchar commented 2 years ago

Dr. Oldford and Dr. Waddell,

Thanks for making this. I am sorry I haven't used it sooner. I just submitted a package update for Rfviz to CRAN today. A little backstory, Leo Breiman and Adele Cutler created Random Forests in the early 2000's. They originally had a visualization tool in Java. I went to Utah State University for my Masters in Statistics, and Adele Cutler was a professor there in the Statistics department at the time. I had no idea she helped create Random Forests, until about halfway through using your package Loon to translate their tool into R. Using your l_plot3D() instead of l_plot(), it allows for one of the original visualization tools to be possible in R. I say all this because I just wanted to say thanks for your work and wanted you to know what your package has made possible. Here is a towards data science post I did about Rfviz: https://towardsdatascience.com/rfviz-an-interactive-visualization-package-for-random-forests-in-r-8fb71709c8bf

I am doing another post about using the l_plot3D as soon as the Rfviz package update goes live on CRAN.

Also, is there a way to enable tick marks for each variable on the parallel coordinate plots?

Thanks again, Chris

On Thu, Apr 25, 2019 at 8:16 AM R. Wayne Oldford @.***> wrote:

Check out https://youtu.be/mMJllGOuDLY


R.W. Oldford http://www.stats.uwaterloo.ca/~rwoldfor


From: Chris Beckett @.<mailto: @.>> Reply-To: waddella/loon @.<mailto: @.>> Date: Monday, March 11, 2019 at 5:37 PM To: waddella/loon @.**@.

Cc: "R.W. Oldford" @.**@.>>, Comment @.**@.>> Subject: Re: [waddella/loon] Can you do a 3d plot in tcl tk? (#11)

When is this release coming out?

On Thu, Mar 7, 2019 at 9:47 PM R. Wayne Oldford @. @.>> wrote:

This will be available in the next release. The function is l_plot3D in R

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/waddella/loon/issues/11#issuecomment-470803647, or mute the thread < https://github.com/notifications/unsubscribe-auth/AXdIAfqtSK_D9_IC6pUwRdxsGRVRkBycks5vUetegaJpZM4TcLau

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://github.com/waddella/loon/issues/11#issuecomment-471740091>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ABzJE7pxuJVDNIInOKJ_fKypgkAksF3gks5vVsyegaJpZM4TcLau

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/waddella/loon/issues/11#issuecomment-486691405, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3UQAL346HJ24XJNLLUBLLPSG4MXANCNFSM4E3QW2XA .

rwoldford commented 2 years ago

Hi Chris

Thanks for the encouraging feedback.

At present, there is no way in loon to change tick marks on serial axes plots.

You can change the labels at creation … e.g., sa <- l_serialaxes(iris[,1:4], axesLabels = LETTERS[1:4]) (which does not seem possible after creation … a bug on our end no doubt).

Two reasons for no tick marks: 1. On l_plots, they change dynamically, 2. on serial axes we imagined they did not matter for interactive purposes (only the range mapping mattered … variable, observation, data, raw).

We always traded off nice static graphic features to focus on the interactive ones.

One thing that might be of interest to you, if your objective is to produce nice static plots at least, is the loon.ggplot package (or the whole suite of “diveR” packages … https://great-northern-diver.github.io/diveR/ ). But I expect that is not what you had in mind.

Wayne

R.W. Oldford Professor of Statistics University of Waterloo

math.uwaterloo.ca/~rwoldfor

From: Chris Kuchar @.> Reply-To: great-northern-diver/loon @.> Date: Tuesday, February 22, 2022 at 3:07 PM To: great-northern-diver/loon @.> Cc: Wayne Oldford @.>, Comment @.***> Subject: Re: [great-northern-diver/loon] Can you do a 3d plot in tcl tk? (#11)

Dr. Oldford and Dr. Waddell,

Thanks for making this. I am sorry I haven't used it sooner. I just submitted a package update for Rfviz to CRAN today. A little backstory, Leo Breiman and Adele Cutler created Random Forests in the early 2000's. They originally had a visualization tool in Java. I went to Utah State University for my Masters in Statistics, and Adele Cutler was a professor there in the Statistics department at the time. I had no idea she helped create Random Forests, until about halfway through using your package Loon to translate their tool into R. Using your l_plot3D() instead of l_plot(), it allows for one of the original visualization tools to be possible in R. I say all this because I just wanted to say thanks for your work and wanted you to know what your package has made possible. Here is a towards data science post I did about Rfviz: https://towardsdatascience.com/rfviz-an-interactive-visualization-package-for-random-forests-in-r-8fb71709c8bf

I am doing another post about using the l_plot3D as soon as the Rfviz package update goes live on CRAN.

Also, is there a way to enable tick marks for each variable on the parallel coordinate plots?

Thanks again, Chris

On Thu, Apr 25, 2019 at 8:16 AM R. Wayne Oldford @.***> wrote:

Check out https://youtu.be/mMJllGOuDLY


R.W. Oldford http://www.stats.uwaterloo.ca/~rwoldfor


From: Chris Beckett @.<mailto: @.>> Reply-To: waddella/loon @.<mailto: @.>> Date: Monday, March 11, 2019 at 5:37 PM To: waddella/loon @.**@.

Cc: "R.W. Oldford" @.**@.>>, Comment @.**@.>> Subject: Re: [waddella/loon] Can you do a 3d plot in tcl tk? (#11)

When is this release coming out?

On Thu, Mar 7, 2019 at 9:47 PM R. Wayne Oldford @. @.>> wrote:

This will be available in the next release. The function is l_plot3D in R

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/waddella/loon/issues/11#issuecomment-470803647, or mute the thread < https://github.com/notifications/unsubscribe-auth/AXdIAfqtSK_D9_IC6pUwRdxsGRVRkBycks5vUetegaJpZM4TcLau

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub< https://github.com/waddella/loon/issues/11#issuecomment-471740091>, or mute the thread< https://github.com/notifications/unsubscribe-auth/ABzJE7pxuJVDNIInOKJ_fKypgkAksF3gks5vVsyegaJpZM4TcLau

.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/waddella/loon/issues/11#issuecomment-486691405, or mute the thread https://github.com/notifications/unsubscribe-auth/AF3UQAL346HJ24XJNLLUBLLPSG4MXANCNFSM4E3QW2XA .

— Reply to this email directly, view it on GitHubhttps://github.com/great-northern-diver/loon/issues/11#issuecomment-1048168527, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AAOMSE4WTRVR7AIZZQR7FE3U4PUJNANCNFSM4E3QW2XA. Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.Message ID: @.***>