tkonopka / rcssplot Goto Github PK
View Code? Open in Web Editor NEWR plots styled with css
Home Page: https://github.com/tkonopka/Rcssplot/wiki
License: GNU General Public License v2.0
R plots styled with css
Home Page: https://github.com/tkonopka/Rcssplot/wiki
License: GNU General Public License v2.0
Currently, all wrappers start in an Rcss prefix; probably to avoid accidental infinite recursion. It would be easier to use if it's just plot
instead of Rcssplot
; since this package will be attached after graphics
we can just mask the plot
function instead.
If we can easily add new functions to wrap, ggplot2::theme is an obvious candidate; here's an example of one: https://github.com/jrnold/ggthemes/blob/master/R/economist.R#L194
I don't want to re-specify the style sheet on every single line. This syntax would be nicer:
with(customStyleEnv, {
plot(x,y)
abline(model)
})
where customStyleEnv is an environment with plot => Rcssplot(x,y,Rcss=customstyle), abline => Rcssabline(,Rcss=customstyle), etc
I have some ideas about generifying the wrapper code, see here: https://gist.github.com/nfultz/2809aa1d9df4540bfbcc
It would also be useful to set/get a default for the Rcssclass.
It is necessary to add a couple of examples with the code to execute and the end result (the plot).
To be able to know about package and its potential in the development of software, algorithms, or results.
It would be nice to create a package vignette that exercises all the plots; it would serve both as documentation and as a test set as we develop.
In CSS, you have @print ...
to add rules for hardcopies.
It would be nice to have conditional rules for specific devices, eg
@pdf abline {
lwd: 2
}
@png abline {
lwd: 5
}
This would help me use the same stylesheet interactively and in knitr.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.