listviewer
2016-06-20 18:46
399 查看
Last week’s
no love, so I’m hoping this one finds a loving home. I have not been able to stop using it, since the first hour of creation, so it has quickly become a key component in my workflow.
With a tweet, Jennifer Bryan inspired this widget. Nested data gets messy, inscrutable, and difficult to follow very
quickly.
the insight and understanding one needs.
or
Thanks so much to the Jos de Jong, the author of
which
I had to write to wrap this as an
As with almost all widgets posted here,
Given enough interest, I’m happy to put in the effort to make this or any others CRAN-worthy. Just let me know.
When I first learned
you’ll need to write a little more code to handle
David Robinson’s
Let’s see the difference with
I hope you can see some of the power of this
the next frontier. See the
Thanks so much
Ramnath Vaidyanathan and RStudio for
all the contributors to
exportwidgetgot almost
no love, so I’m hoping this one finds a loving home. I have not been able to stop using it, since the first hour of creation, so it has quickly become a key component in my workflow.
With a tweet, Jennifer Bryan inspired this widget. Nested data gets messy, inscrutable, and difficult to follow very
quickly.
listsand
environmentsin R are the primary source of this nested data. Often, an interactive visual look provides
the insight and understanding one needs.
listviewergives us this view with just one line of code. We can use it to inspect
htmlwidgetsor
latticeplots
or
par()settings or your
.GlobalEnv.
Thanks so much to the Jos de Jong, the author of
jsoneditoron
which
listviewerrelies for all its awesomeness. If you look at the source of
listviewer, you will notice how little code
I had to write to wrap this as an
htmlwidget.
Quick Installation
As with almost all widgets posted here, listvieweris not on CRAN, so for now please install with
devtools::install_github.
Given enough interest, I’m happy to put in the effort to make this or any others CRAN-worthy. Just let me know.
devtools::install_github(c( 'jeroenooms/jsonlite' , 'rstudio/shiny' , 'ramnathv/htmlwidgets' ))
Examples
What’s my par
?
When I first learned RI struggled with all the stuff in
par(). Let’s see if this makes a little more sense.
library(listviewer) jsonedit( par() )
What’s in my lattice
?
latticeplots become
trellisobjects. Let’s peek inside. If you’re thinking let’s do the same with
ggplot2,
you’ll need to write a little more code to handle
S3,
S4, and
environments.
library(lattice) library(listviewer) jsonedit( xyplot( y~x, data.frame( x = 1:10, y = 1:10 ), type = "b" ) )
What’s in my broom
?
David Robinson’s broompackage tidies up our messy data in
R.
Let’s see the difference with
jsonedit.
jsonedit( list( "messy" = lm(mpg~factor(cyl),mtcars) ,"broom" = list( "tidy" = broom::tidy(lm(mpg~factor(cyl),mtcars)) ,"augment" = broom::augment(lm(mpg~factor(cyl),mtcars)) ) ) )
What’s in my htmlwidget
?
I hope you can see some of the power of this htmlwidget. As a final example, let’s go meta and
jsoneditour
jsonedit.
library(listviewer) jsonedit(jsonedit())
Shiny?
listviewersort of works with
Shiny.
modifyand
savefor
listvieweris
the next frontier. See the
Readme.md.
Thanks
Thanks so muchjsoneditorfrom Jos de Jong
Ramnath Vaidyanathan and RStudio for
htmlwidgets
all the contributors to
Rand
JavaScript
相关文章推荐
- VLC的ACtiveX插件使用方法
- thinkphp中url路由
- AngularJs----ng-class
- logstash升级kafka插件
- HTML状态码大全(301,404,500等)
- SharePreferenceDemo
- html5的在ie6,7,8兼容
- Android 5.1长按电源键添加重启功能
- mysql 的触发器
- [Android]Android中人脸识别接口的使用
- eclipse配置tomcat,访问http://localhost:8080出现404错误
- 【OpenGL/ES】 第05讲 3D数学-旋转矩阵的推导
- linux 安装ffmpeg 非yasm yum安装
- C++实现快速排序(源代码)
- php 5.3.10 + CI3 PDO注入测试
- 解决Tomcat7“At least one JAR was scanned for TLDs yet contained no TLDs”问题
- Aspect Oriented Programming using Interceptors within Castle Windsor and ABP Framework AOP
- java视频格式转换代码
- 使用 fr-third-7.1.jar进行excel导入
- Android内存优化总结【整理】