Kanaries / GWalkR

Turn your data frame into a tableau style drag and drop UI interface to build visualization in R.
Apache License 2.0
416 stars 40 forks source link

Limit some functionalities? #22

Open follhim opened 2 months ago

follhim commented 2 months ago

Is there a way to limit some functionalities for instance, is there a way for participants to not download the data as a csv.

I'm hoping to create an interactive website for data exploration, but with the ability to download the data off. I love the UI of the package, but saw that you can download the data as a csv which would not be possible with our sensitive data.

bruceyyu commented 2 months ago

@follhim This is a good idea. I plan to implement this recently, maybe in few weeks

bruceyyu commented 2 months ago

@follhim I just released v0.1.5, with a new param toolbarExclude to indicate tools to be excluded from toolbar UI. In your case, you can use gwalkr(df, toolbarExclude=list("csv")) to exclude the csv exporting function.

For keys of other tools, you can refer to the source code of graphic-walker.

However, please note that Kanaries brand info is not allowed to be removed or changed unless you are granted special permission.

follhim commented 2 months ago

Ahhh this is amazing! I'll definetly have to try this out later this week. When I do, I'll have to share the link of the website to show my gratitude!

follhim commented 2 months ago

Okay, so this is perfect, I love that the data is interactive and yet also safe from download (I will not be using github to post).

But my main issue is that there doesn't seem to be a way to get a histogram of one variable on the x-axis. Am I doing something wrong? Like I can see the histogram on the "data" tab.

I can do a scatterplot, but that's not the same as a histogram. I choose bar, which kind of works. But not with one variable.

https://mediaspace.illinois.edu/media/t/1_jti8smmu Would love to hear your advice

bruceyyu commented 2 months ago

Okay, so this is perfect, I love that the data is interactive and yet also safe from download (I will not be using github to post).

But my main issue is that there doesn't seem to be a way to get a histogram of one variable on the x-axis. Am I doing something wrong? Like I can see the histogram on the "data" tab.

I can do a scatterplot, but that's not the same as a histogram. I choose bar, which kind of works. But not with one variable.

https://mediaspace.illinois.edu/media/t/1_jti8smmu Would love to hear your advice

@follhim You want to visualize the distribution of a continuous measure, so actually the first step is to create the bins of that measure.

image

Then you can drag the bins to an axis, and drag the row count to another axis

munoztd0 commented 1 month ago

Okay, so this is perfect, I love that the data is interactive and yet also safe from download (I will not be using github to post). But my main issue is that there doesn't seem to be a way to get a histogram of one variable on the x-axis. Am I doing something wrong? Like I can see the histogram on the "data" tab. I can do a scatterplot, but that's not the same as a histogram. I choose bar, which kind of works. But not with one variable. https://mediaspace.illinois.edu/media/t/1_jti8smmu Would love to hear your advice

@follhim You want to visualize the distribution of a continuous measure, so actually the first step is to create the bins of that measure.

image

Then you can drag the bins to an axis, and drag the row count to another axis

And from there how do you do an Density plot ?

PS: Your work is amazing cheers !

bruceyyu commented 1 month ago

Okay, so this is perfect, I love that the data is interactive and yet also safe from download (I will not be using github to post). But my main issue is that there doesn't seem to be a way to get a histogram of one variable on the x-axis. Am I doing something wrong? Like I can see the histogram on the "data" tab. I can do a scatterplot, but that's not the same as a histogram. I choose bar, which kind of works. But not with one variable. https://mediaspace.illinois.edu/media/t/1_jti8smmu Would love to hear your advice

@follhim You want to visualize the distribution of a continuous measure, so actually the first step is to create the bins of that measure.

image

Then you can drag the bins to an axis, and drag the row count to another axis

And from there how do you do an Density plot ?

PS: Your work is amazing cheers !

@munoztd0 Thanks! Unfortunately, we don't support smoothing and proportion computation. If you want to mimic a density plot in GWalkR, one workaround is to select line or area as your mark type, after you draw a histogram.

image
munoztd0 commented 1 month ago

Oh that's clever, and good enough for what i need thanks !