Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
cd19b3b
added package structure
DavZim Aug 22, 2018
d75bf31
updated Readme and added create_images skript
DavZim Aug 22, 2018
0d9da0d
reduced fontsize
DavZim Aug 22, 2018
26e342b
added variable text size
DavZim Aug 22, 2018
dc16e6c
more compact documentation
DavZim Aug 22, 2018
a29a10f
all joins and sets properly working
DavZim Aug 22, 2018
bcd6fe7
fixed inner join
DavZim Aug 22, 2018
a861a5a
arguments can be now passed to tweak plot details
DavZim Aug 22, 2018
668eb2a
fixed anti join
DavZim Aug 22, 2018
0b6db08
updated readme to show the graphics
DavZim Aug 22, 2018
1f20c8b
allow textcolor
DavZim Aug 22, 2018
3b19e34
renamed some helper functions
DavZim Aug 22, 2018
bdfc543
removed base-plot references
DavZim Aug 22, 2018
40438fa
added authors to description
DavZim Aug 22, 2018
779aef6
working gather and spread
DavZim Aug 23, 2018
12176a7
better colors in tidyr
DavZim Aug 23, 2018
64bfc54
updated readme
DavZim Aug 23, 2018
259b44f
allows multiple id-columns
DavZim Aug 23, 2018
e293d3e
Some initial cleanup of package structure for #10 #12
gadenbuie Aug 27, 2018
1a21ded
Merge remote-tracking branch 'gadenbuie/pkg' into package-struct
DavZim Aug 28, 2018
bfa7255
took out stringr calls, reduced single command pipes
DavZim Aug 28, 2018
256448d
took out animate-call from the join functions
DavZim Aug 28, 2018
0a6a02d
Replace set_text_color()
gadenbuie Sep 1, 2018
e600e4f
Add tidyr:: and dplyr:: where needed
gadenbuie Sep 1, 2018
f536db1
Add package environment for global plot settings
gadenbuie Sep 1, 2018
cb3c44b
Test tidyexplain name and update README
gadenbuie Sep 1, 2018
3ab9ff2
Rename to choose_text_color and update tests
gadenbuie Sep 1, 2018
e051010
Update animate_join function and documentation
gadenbuie Sep 1, 2018
183f6d3
Adjust font sizes in animate_gather/spread
gadenbuie Sep 1, 2018
5dcdf5f
Refactor use of quoting to get input text
gadenbuie Sep 1, 2018
d2833f1
Update animate_sets to match animate_joins
gadenbuie Sep 1, 2018
ab88ed5
Clean up return statements for #15
gadenbuie Sep 1, 2018
6e19e7f
Fix function name in choose_text_color test
gadenbuie Sep 1, 2018
caa9188
Refactor get_quos_name() and add tests for tidyr_helpers
gadenbuie Sep 1, 2018
c6d670c
Refactor dput_parser() and add tests
gadenbuie Sep 1, 2018
4592186
Use tidyselect to let ... in animate_gather() match semantics of tid…
gadenbuie Sep 1, 2018
0ea0576
Fix missing dplyr:: for one_of()
gadenbuie Sep 1, 2018
608f002
Import spread and gather from tidyr
gadenbuie Sep 1, 2018
e4a3de3
Add purrr dependency to Imports
gadenbuie Sep 3, 2018
326b48a
Only attach tidyexplain in README
gadenbuie Sep 3, 2018
390674f
Adds anim_options() helper function
gadenbuie Sep 2, 2018
4537bbc
Remove underscore from enter/exit parameters in anim_options()
gadenbuie Sep 3, 2018
259d86b
Add validate_anim_opts() and fix passing of options to static_plot()
gadenbuie Sep 3, 2018
707fa06
Give enter/exit options name of expression used
gadenbuie Sep 3, 2018
54bdceb
Add print method for anim_options()
gadenbuie Sep 3, 2018
9efdb97
Completes animation options framework via anim_options()
gadenbuie Sep 3, 2018
d47f3de
Fix typo in get_title_size() and add test
gadenbuie Sep 3, 2018
1e23c86
anim_options_set() without argument resets global options
gadenbuie Sep 3, 2018
4020070
Ensure precedence of options and add tests
gadenbuie Sep 3, 2018
63f7847
Update and render README with new anim_options()
gadenbuie Sep 3, 2018
f957f00
Fix issues after complicated merge
gadenbuie Sep 4, 2018
e689eef
Use anim_opts = anim_options() instead of NULL
gadenbuie Sep 4, 2018
8a1e6f6
Update print method for anim_opts
gadenbuie Sep 4, 2018
bbb8410
Export print and is methods for anim_opts
gadenbuie Sep 4, 2018
dde12e6
Merge pull request #19 from gadenbuie/pkg-add-anim-opts-fixed
DavZim Sep 10, 2018
519a827
Merge pull request #16 from gadenbuie/pkg-updates
DavZim Sep 10, 2018
7ac326c
updated readme gifs
DavZim Nov 16, 2018
35fc3f7
Merge branch 'master' into pkg
DavZim Nov 26, 2018
17463d3
Add CODEOWNERS
gadenbuie Aug 27, 2018
f47c28f
Merge branch 'master' into pkg
DavZim Nov 26, 2018
e51273d
updated ggplot theme_env
DavZim Nov 27, 2018
b3d249e
added color functionality to anim_options
DavZim Nov 27, 2018
5763934
unified animate_set and animate_join
DavZim Nov 27, 2018
f26740e
renamed anim_options_set to set_anim_options
DavZim Nov 27, 2018
30a63a3
added cell_width and cell_height option
DavZim Nov 27, 2018
dd8ae8c
minor function changes
DavZim Nov 27, 2018
19602f1
updated readme
DavZim Nov 27, 2018
e25f780
updated images and create_images
DavZim Nov 27, 2018
7c9b6bf
updated readme images
DavZim Nov 27, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
^LICENSE\.md$
^.*\.Rproj$
^\.Rproj\.user$
41 changes: 41 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
Type: Package
Package: tidyexplain
Title: Animated Explanations of Tidyverse Verbs
Version: 0.0.1.9000
Date: 2018-08-27
Authors@R:
c(person(given = "Garrick",
family = "Aden-Buie",
role = c("aut", "cre"),
email = "g.adenbuie@gmail.com"),
person(given = "David",
family = "Zimmermann",
role = "aut",
email = "david_j_zimmermann@hotmail.com"),
person(given = "Tyler Grant",
family = "Smith",
role = "ctb"))
Description: Animated explanations of the verbs in the tidyverse
using gganimate and ggplot2.
License: MIT + file LICENSE
Depends:
gganimate (>= 0.9.9.9999),
ggplot2 (>= 3.0.0)
Imports:
dplyr,
magrittr,
purrr,
rlang (>= 0.1.2),
scales,
tidyr,
tidyselect
Suggests:
knitr,
roxygen2,
testthat,
viridis
VignetteBuilder:
knitr
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 6.1.1
118 changes: 2 additions & 116 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,116 +1,2 @@
CC0 1.0 Universal

Statement of Purpose

The laws of most jurisdictions throughout the world automatically confer
exclusive Copyright and Related Rights (defined below) upon the creator and
subsequent owner(s) (each and all, an "owner") of an original work of
authorship and/or a database (each, a "Work").

Certain owners wish to permanently relinquish those rights to a Work for the
purpose of contributing to a commons of creative, cultural and scientific
works ("Commons") that the public can reliably and without fear of later
claims of infringement build upon, modify, incorporate in other works, reuse
and redistribute as freely as possible in any form whatsoever and for any
purposes, including without limitation commercial purposes. These owners may
contribute to the Commons to promote the ideal of a free culture and the
further production of creative, cultural and scientific works, or to gain
reputation or greater distribution for their Work in part through the use and
efforts of others.

For these and/or other purposes and motivations, and without any expectation
of additional consideration or compensation, the person associating CC0 with a
Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
and publicly distribute the Work under its terms, with knowledge of his or her
Copyright and Related Rights in the Work and the meaning and intended legal
effect of CC0 on those rights.

1. Copyright and Related Rights. A Work made available under CC0 may be
protected by copyright and related or neighboring rights ("Copyright and
Related Rights"). Copyright and Related Rights include, but are not limited
to, the following:

i. the right to reproduce, adapt, distribute, perform, display, communicate,
and translate a Work;

ii. moral rights retained by the original author(s) and/or performer(s);

iii. publicity and privacy rights pertaining to a person's image or likeness
depicted in a Work;

iv. rights protecting against unfair competition in regards to a Work,
subject to the limitations in paragraph 4(a), below;

v. rights protecting the extraction, dissemination, use and reuse of data in
a Work;

vi. database rights (such as those arising under Directive 96/9/EC of the
European Parliament and of the Council of 11 March 1996 on the legal
protection of databases, and under any national implementation thereof,
including any amended or successor version of such directive); and

vii. other similar, equivalent or corresponding rights throughout the world
based on applicable law or treaty, and any national implementations thereof.

2. Waiver. To the greatest extent permitted by, but not in contravention of,
applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
and Related Rights and associated claims and causes of action, whether now
known or unknown (including existing as well as future claims and causes of
action), in the Work (i) in all territories worldwide, (ii) for the maximum
duration provided by applicable law or treaty (including future time
extensions), (iii) in any current or future medium and for any number of
copies, and (iv) for any purpose whatsoever, including without limitation
commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
the Waiver for the benefit of each member of the public at large and to the
detriment of Affirmer's heirs and successors, fully intending that such Waiver
shall not be subject to revocation, rescission, cancellation, termination, or
any other legal or equitable action to disrupt the quiet enjoyment of the Work
by the public as contemplated by Affirmer's express Statement of Purpose.

3. Public License Fallback. Should any part of the Waiver for any reason be
judged legally invalid or ineffective under applicable law, then the Waiver
shall be preserved to the maximum extent permitted taking into account
Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
is so judged Affirmer hereby grants to each affected person a royalty-free,
non transferable, non sublicensable, non exclusive, irrevocable and
unconditional license to exercise Affirmer's Copyright and Related Rights in
the Work (i) in all territories worldwide, (ii) for the maximum duration
provided by applicable law or treaty (including future time extensions), (iii)
in any current or future medium and for any number of copies, and (iv) for any
purpose whatsoever, including without limitation commercial, advertising or
promotional purposes (the "License"). The License shall be deemed effective as
of the date CC0 was applied by Affirmer to the Work. Should any part of the
License for any reason be judged legally invalid or ineffective under
applicable law, such partial invalidity or ineffectiveness shall not
invalidate the remainder of the License, and in such case Affirmer hereby
affirms that he or she will not (i) exercise any of his or her remaining
Copyright and Related Rights in the Work or (ii) assert any associated claims
and causes of action with respect to the Work, in either case contrary to
Affirmer's express Statement of Purpose.

4. Limitations and Disclaimers.

a. No trademark or patent rights held by Affirmer are waived, abandoned,
surrendered, licensed or otherwise affected by this document.

b. Affirmer offers the Work as-is and makes no representations or warranties
of any kind concerning the Work, express, implied, statutory or otherwise,
including without limitation warranties of title, merchantability, fitness
for a particular purpose, non infringement, or the absence of latent or
other defects, accuracy, or the present or absence of errors, whether or not
discoverable, all to the greatest extent permissible under applicable law.

c. Affirmer disclaims responsibility for clearing rights of other persons
that may apply to the Work or any use thereof, including without limitation
any person's Copyright and Related Rights in the Work. Further, Affirmer
disclaims responsibility for obtaining any necessary consents, permissions
or other rights required for any use of the Work.

d. Affirmer understands and acknowledges that Creative Commons is not a
party to this document and has no duty or obligation with respect to this
CC0 or use of the Work.

For more information, please see
<http://creativecommons.org/publicdomain/zero/1.0/>
YEAR: 2018
COPYRIGHT HOLDER: Garrick Aden-Buie
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2018 Garrick Aden-Buie

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
41 changes: 41 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Generated by roxygen2: do not edit by hand

S3method(print,anim_opts)
export("%>%")
export(anim_options)
export(animate_anti_join)
export(animate_full_join)
export(animate_gather)
export(animate_inner_join)
export(animate_intersect)
export(animate_left_join)
export(animate_right_join)
export(animate_semi_join)
export(animate_setdiff)
export(animate_spread)
export(animate_union)
export(animate_union_all)
export(get_font_size)
export(is.anim_opts)
export(set_anim_options)
export(set_font_size)
importFrom(dplyr,anti_join)
importFrom(dplyr,arrange)
importFrom(dplyr,bind_cols)
importFrom(dplyr,bind_rows)
importFrom(dplyr,data_frame)
importFrom(dplyr,filter)
importFrom(dplyr,full_join)
importFrom(dplyr,group_by)
importFrom(dplyr,inner_join)
importFrom(dplyr,left_join)
importFrom(dplyr,mutate)
importFrom(dplyr,pull)
importFrom(dplyr,right_join)
importFrom(dplyr,row_number)
importFrom(dplyr,select)
importFrom(dplyr,semi_join)
importFrom(dplyr,slice)
importFrom(magrittr,"%>%")
importFrom(tidyr,gather)
importFrom(tidyr,spread)
37 changes: 0 additions & 37 deletions R/00_base_join.R

This file was deleted.

50 changes: 0 additions & 50 deletions R/00_base_set.R

This file was deleted.

28 changes: 0 additions & 28 deletions R/00_base_tidyr.R

This file was deleted.

7 changes: 0 additions & 7 deletions R/01_register-fonts.R

This file was deleted.

Loading