Devon,
I'm doing some informal internal training on R and I brought up Shiny
and manipulate a few weeks back. Here's the snippet I used:
require(manipulate)
manipulate(
(function() {
label <- element_blank()
if (g.Label) { label <- geom_text(aes(label=CustomerName, hjust=0,
vjust=0, angle=45)) }
ggplot(data=eg,aes(y=Price,x=Volume)) + geom_point() + ylim(y.min,
y.max) + xlim(x.min, x.max) + label
})()
,
y.min=slider(0,60,initial=0),
y.max=slider(0,60,initial=60),
x.min=slider(0,max(eg$Volume),initial=0),
x.max=slider(0,max(eg$Volume),initial=max(eg$Volume)),
g.Label = checkbox()
)
I had some trouble figuring out how to make it work initially and I've
used R for awhile now. It's ahead of where R has been, but still has
some ground to cover before being easily adopted.
Here's an example of how Wolfram handles it:
https://reference.wolfram.com/language/tutorial/IntroductionToManipulate.html
On Mon, Nov 2, 2015 at 8:33 AM, Devon McCormick <[email protected]> wrote:
> Hi Gosi - you are completely correct. As an example of where we might aim,
> take a look at what the R people do with "Shiny" - http://shiny.rstudio.com/
> - a "web application framework" that allows you to put a web interface on
> your R code without dealing w/HTML (so they say).
>
> On Mon, Nov 2, 2015 at 4:43 AM, Björn Helgason <[email protected]> wrote:
>
>> We have a great programming language.
>> It has a potential to do a lot.
>> There is a learning barrier.
>> Very many potential users give up.
>> Using J and HTML looks great.
>> What is missing are more and better demos how to use this.
>> How to create forms.
>> How to interact between those two.
>> It is surely doable.
>>
>> Many others are letting kids create HTML forms to do simple things.
>> There are also tools to do simple apps on tablets.
>>
>> A long time ago APL used to be the best.
>> It missed out to the PC.
>> It also missed out to EXCEL.
>>
>> Maybe it is possible to let J and HTML become easy and simple to use?
>>
>> Maybe it is possible to let J be easy and simple creating apps on tablets?
>>
>> I sometimes feel like Charlie Brown hoping for the most simple things.
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
>
> --
>
> Devon McCormick, CFA
>
> Quantitative Consultant
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm