GithubHelp home page GithubHelp logo

tkonopka / rcssplot Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 4.0 363 KB

R plots styled with css

Home Page: https://github.com/tkonopka/Rcssplot/wiki

License: GNU General Public License v2.0

R 100.00%
r visualization css data-science

rcssplot's People

Contributors

francoisguillem avatar nfultz avatar tkonopka avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rcssplot's Issues

Drop Rcss prefix

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.

DRYer syntax

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

default class

It would also be useful to set/get a default for the Rcssclass.

No examples are provided

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.

  • Add to Readme.md some examples
  • Add to wiki reproducible examples.

Vignette

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.

New feature: device selectors

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.