Comments (6)
Great idea, thanks!
Will tweak correlation.tpl to do so and also add some helpers for creating correlation matrices with stars - also for pairs plots.
I'll add milestone 0.2 to this issue not to get too lazy :)
from rapport.
Half done in aL3xa/rapport@fa65500: rp.cor.plot
shows those red stars now (see correlations.tpl for demo).
Will update the tpl too for tables.
from rapport.
Added stars to corr table too in aL3xa/rapport@406f067.
Please check out after rebuild:
rapport('correlations', data=ius2009, vars=c('age', 'it.edu', 'it.leisure'))
tpl.export(rapport('correlations', data=ius2009, vars=c('age', 'it.edu', 'it.leisure')))
Closing this now, please reopen if you had something different in mind.
from rapport.
I reopened this one because I think this shouldn't be done only for correlation tables, but globally. Helper functions should be written, and/or custom class should be assigned to column in data.frame
or so... which holds p-values. Will think about this, though, but let's make this issue open for now.
from rapport.
Okay, I have an idea which can be handled with a simple function named to eg. rp.add.stars
.
My idea in a nutshell which would work with vector
s and data.frame
s (we/template writers can deal with this limitation IMHO): add an attr
named to p.value
to each element/column of the R object, and the function would return automatically the R object with the same dimensions/names/row.names etc. but with stars added (converted to character
).
This way we would not require a new class
which would result in difficulties to pass to ascii
etc. I would happily implement this if you agree.
POC demo:
> (x <- data.frame(var=1:2))
var
1 1
2 2
> attr(x$var, 'p.value') <- c(0.01, 0.9)
> str(x)
'data.frame': 2 obs. of 1 variable:
$ var: atomic 1 2
..- attr(*, "p.value")= num 0.01 0.9
> rp.add.stars(x)
var
1 "1 **"
2 "2"
from rapport.
Closing here, this is a pander
issue.
from rapport.
Related Issues (20)
- please reopen issue #98 HOT 1
- Plot files not regenerated after user deletion HOT 2
- tpl.users option not rendered in report HOT 1
- include an rCharts into a html repport HOT 4
- include an rCharts into a pdf repport HOT 1
- custom footer / headers
- using rapport template over HTTP HOT 3
- Too limited parameter type matching HOT 2
- Removing package website from README which now links to a porn website HOT 4
- Input naming conventions: go native as well HOT 1
- Input description - some inconsistencies HOT 1
- not required standalone input's value is NULL by default HOT 9
- default value for matchable inputs not found HOT 3
- throw error on missing required input
- graphing wizard error HOT 1
- file extension HOT 3
- Default value for required input
- error with rapport.pdf and Logo=TRUE on Windows HOT 4
- More explicit message in Pandoc.convert
- advices on how to use ggplot2 in rapport templates HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rapport.