Coder Social home page Coder Social logo

volker's Introduction

Aye 👋

I'm sailing the data seas ⛵. My home ports are Greifswald, Münster, Mainz, and the Datavana.

volker's People

Contributors

chantalgrtnr avatar henriekekotthoff avatar strohne avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

volker's Issues

Percentages

Can we print interactive tables to switch between column, row or total shares?

Always report missings in the base

Currently, some functions (for counts) provide a missings parameter. Others just skip missings. Suggestion:

  • Always report missings in the plot subtitle, a table footer or print a warning
  • For table functions, add a missings column (that is not included in the calculation of totals or percentages)
  • The missings parameter should be FALSE by default. When set to TRUE, missings should be treated as normal values, included in plots and tables as normal categories.

Reduce package size

Winbuilder says:

* checking CRAN incoming feasibility ... [12s] NOTE
...
Version contains large components

When building a source package, the rendered markdowns include big plots.

  • Can we get rid of them?
  • Can we reduce image size?
  • Can we reduce the number of rendered plots?

Remove missings from tables

Default parameter in descriptive tables should be: no missings. Can the number of missings be printed below the table?

Focus one category

In plot_counts_one(), plot_counts_one_grouped() and plots_counts_items() we have a category parameter. Add the same parameter to the corresponding table functions. And allow cumulative counts for ordered values.

Negative values are not ommited

Due to a bug in the function data_rm_negatives, not all negative values were removed in the report, tab, plot, and effect functions.

The bug is fixed, but not yet deployed. As a workaround, install the latest development version or explicitly remove specific residual values.

The following option, if set before the original dataframe is converted to a vlkr dataframe, can be used as a workaround to remove residual values:

options(vlkr.na.numbers=c(-1,-2,-9))

Check input scales

For all plot / count / effects functions, check whether the scale of the input vars is as expected (e.g. metric for a metric table) and print appropriate warnings.

Plot height in markdowns

Plot height is only calculated when using the report function. Implement a plot function for vlkr_plots that calculate and render the target height for other functions.

Customize colors

Support custom fill colors for ordered bar plots (VLKR_FILLGRADIENT).

For unordered:
theme_set(theme_vlkr(base_fill = list(
c("red"),
c("red","blue","green","magenta","black")))
)

Implement a parameter base_gradient.

Release volker 1.0.0

First release:

Prepare for release:

  • git pull
  • Check if any deprecation processes should be advanced, as described in Gradual deprecation
  • urlchecker::url_check()
  • devtools::build_readme()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • git push
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('major')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • Add preemptive link to blog post in pkgdown news menu
  • usethis::use_github_release()
  • usethis::use_dev_version(push = TRUE)
  • Finish blog post
  • Tweet

Flip stacked bars

In plot_counts_one_grouped, flip the plot when prop is changed to cols.

Revise examples in readme

For the readme: Create better tables and maybe plots, revise the layout. Can be directly created inside the README.Rmd

Item order

Die Reihenfolge der Items kommt durcheinander:

ds <- tribble(
  ~f1, ~f2, ~f10,
  1,     1,    1,
  1,     2,    1,
  2,     2,    2
) 

plot_counts(ds, c(f1:f10))
tab_counts(ds, c(f1:f10))

Bei metrics klappt es:

plot_metrics(ds, c(f1:f10))
tab_metrics(ds, c(f1:f10))

Außerdem ist hier das Farbschema unschön. Besser differenzieren:

  • bei nur zwei Werten türkis statt schwarz nehmen.
  • bei x Werten dann schwarz dazu nehmen

Release volker 2.0.0

Prepare for release:

  • git pull
  • Check current CRAN check results
  • Check if any deprecation processes should be advanced, as described in Gradual deprecation
  • Polish NEWS
  • urlchecker::url_check()
  • devtools::build_readme()
  • devtools::check(remote = TRUE, manual = TRUE)
  • devtools::check_win_devel()
  • revdepcheck::revdep_check(num_workers = 4)
  • Update cran-comments.md
  • git push
  • Draft blog post

Submit to CRAN:

  • usethis::use_version('major')
  • devtools::submit_cran()
  • Approve email

Wait for CRAN...

  • Accepted 🎉
  • Add preemptive link to blog post in pkgdown news menu
  • usethis::use_github_release()
  • usethis::use_dev_version(push = TRUE)
  • Finish blog post
  • Tweet

Overview about parameteres

In the documentation (intro vignette?) show a table with all plot and tab functions in rows, all parameters in cols and x when a function supports the parameter.

Implement missing table and plot functions

We still need three basic functions to fill the gap of the scheme:

  • tab_counts_items_grouped
  • plot_counts_items_grouped
  • tab_counts_items_cor

And two plot functions for correlations

  • plot_metrics_items_cor
  • plot_counts_items_cor

Markdown template

Add a markdown template with sensible defaults for creating reports:

  • Knit options echo=F, include=T
  • Load packages: tidyverse and volker
  • Sections: Load data, prepare data, report

Show how to save and load a codebook

codes <- codebook(ds)
write_xlsx(codes,"codebook.xlsx")

Dann manuell anpassen und:

codes <- read_xlsx("codebook-new.xlsx")
ds<- labs_apply(codebook)

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.