NEWS (original) (raw)
spinifex v0.3.10
- Added a function
ide, as a utility for estimating intrinsic data dimensionality - ggplot2 v4.0.0 pushed breaking changes as they transition to S7 objects; changed tests from
expect_equal(class(x), c("gg", "ggplot"))toexpect_true(inherits(x, c("ggplot", "ggplot2::ggplot")))according to https://github.com/tidyverse/ggplot2/issues/6498 - Trivial adjustment to
animate_plotlybacking out of experimental dev to support plotly subplots, especially for use bycheem::global_view - Trivial adjustment
plot_pca_screetest - Tests now use
spinifex::save_historyinstead of verbosetourr::save_history
spinifex v0.3.9
- ggplot2 is pushing breaking changes as they transition to S7 objects; changed tests from
expect_equal(class(x), c("gg", "ggplot"))toexpect_true(inherits(x, c("ggplot", "ggplot2::ggplot")))according to https://github.com/tidyverse/ggplot2/issues/6498 - Added a check in
animate_gganimateasking for gifski to be installed to render to gif (hopefully, preventing some users saving the gif to many png files) - Changed a couple of examples of
animate_gganimateto dontrun (from donttest) trying to fix rhub errors
spinifex v0.3.8
- New function
proto_text_repelimplementingggrepl::geom_text_repel, only works withanimate_gganimate - Function
proto_textnow has more flexible labels and examples using them - Fixed example dataset in
run_app, weather and breast cancer - Fixed new ggplot2 warnings in
proto_basis1d; aggregated 2 rows to 1 - New function
plot_pcaquick pca plots - New function
plot_pca_screequick pca plot with scree plot - Fixed issue of erroneous warning about replication length due to row_index = TRUE rather than NULL
- Function
save_historymessage is silenced when verbose = FALSE - Safer
devMessagefor development purposes - Minor documentation cleanup
spinifex v0.3.7
- Changes for packages documentation as requirements changed
- Replace
sizewithlinetypein line geoms - Replace
..ndensity..withafter_stat(ndensity)in density geoms - Removed length checks from tests as ggplot2 plans a change
- Fixed a change in behavior in testthat
- Moved
gganimatedocumentation from\\donttestto\\dontrunin alignment withgganimatedocumentation. (Else some OS builds fail, with no mechanism to troubleshoot)
spinifex v0.3.6
- Clean up messages in
manual_tour - Add more examples interacting
manual_tourandproto_density, and bringing your own basis - Fix a couple of odd cases in
basis_olda&.lapply_rep_len - More consistent names and indenting in examples
spinifex v0.3.5
- Vignettes point to github urls rather than gifs in repository
proto_basis1d()has an text_offset argument for the horizontal position of text labels- Change roxygen documentation
\\dontrun’s to\\donttest’s - Clarify examples of deprecated functions
- License changed to MIT (from CC BY-NC-SA 4.0, apparently not FOSS)
spinifex v0.3.4
- Cleaned up both vignettes; include plotly output & removed scroll bars from wide code chunks
- Removed forced garbage collection
gc()calls, too expensive for the minor issues it tried to mitigate proto_density()now changes the aspect ratio to 1/2 (y/x), twice as wideanimate_plotly()will change the x scaleratio to 2 (for nonplotly::subplotanimations)- Changed defaults to
map_relative(); position = “left” or “right” is fully off outside of the data and slightly smaller - Adjust text-related
proto_*()default; decreasing the text size (5 -> 4) - Adjust line segment-related
proto_*()default; decreasing the line size a (1 -> .6) - Adjust
filmstrip & facet_wrap_tour(): adds theme for borders to help distinguish facets - Adjust
theme_spinifex()to include shading and strip outline consistent with the above point
spinifex v0.3.3
- Add do_center_frame = TRUE argument to
ggtour(), such that tours don’t want too far to the sides as they were in cheem radial tours - Adjust
theme_spinifex(): tightening margins, facet strip outlines, and better separating theme elements from ggtour default settings
spinifex v0.3.2
- New function:
facet_wrap_tour(), for faceting tours - New function:
proto_frame_cor2(), adds text for the within-frame correlation squared - New function:
append_fixed_y(), add/overwrite data y column to fixed values, such as for the height of predicted values or residuals of a model - New function:
draw_basis()static ggplot2 variant ofproto_basis, that accepts a basis directly without requiring ggtour initialization - Most data-oriented
proto_*functions haverow_indexargument; allowing for subsetting that is compatible with faceting and appending a fixed y! By default,proto_point()will plot non-selected points in faint grey, behind selected points theme_spinifex()changed removing the duplicate legend display, fewer warnings, and less frame oddities (geom existence issues) withanimate_plotly- Better examples for setting dimensions, resolution, and renders in
animate_*functions - Refreshed readme
spinifex v0.3.1
- Fixed ‘phi issue’ where manual tours were not consistent in their initial direction, now always move toward full contribution before 0 contribution.
- Interpolation of manual tours now handled in
ggtour()synchronizesangleusage with{tourr}tours manual_tour()and related functions now handle 1D projections- New functions:
proto_highlight/1d()for highlighting specific points in ggtours - New function:
filmstrip(), creates a ggplot faceting the frames of a ggtour for a static output - New dataset:
penguins_na.rm, frompalmerpenguins::penguins, removed NA rows & reordered columns - Added argument
rownum_indextoproto_text, for labeling subsets - Experimental wrapper function
spinifex::save_history, muting the noisy execution oftourr::save_history
spinifex v0.3.0
- New ggproto api for visuals, see
?ggplot_tour()to get started!! – 10x newproto_*functions, essentiallygeoms_*for animated tours: basis/1d, point, origin/1d, density, text, hex, default/1d. – 2x animation funcs;animate_plotly()andaniamte_gganimate()– 2x internal utility functions - New vignette demonstrating this api
vignette("ggproto_api", "spinifex") - Shiny app now imports .csv & .rds, code improved, uses new ggproto api – `run
- Fixed a format issue with the
BeastCancer_na.rmdataset
spinifex v0.2.8
- Vectorized all
forloops manip_var_of(basis)suggests a variable to used based on the rank of the contributions of the basis.
Basis_* functions to find features of interest, powered by{Rdimtools}. - basis_olda() -basis_odp() - basis_onpp() -basis_olpp()
New util functions: - scale_sd() center and scale each variable by it’s standard deviation - scale_01() center and scale each variable to be between [0, 1] -basis_half_circle(), variable agnostic basis with minimal variable dependence - as_history_array(), coerces an array of bases into the same attributes and class as returns oftourr::save_history()
spinifex v0.2.7
- Gives deprecated warning when using
view_basis()andoblique_basis(), no longer listed inview_frame()documentation - Fixed “radial_tour” shiny app to reflect argument changes
- Fixed example run time for
render_plotly()going longer than 10 seconds
spinifex v0.2.6
- New argument,
ggproto, accepts a list of{ggplot2}objects for more control over visual output - New argument,
aes_args, accepts a list of arguments to pass into theaes()call withingeom_point(). This is used for variable mappings, such as color, but needs to be qualified as this is standard evaluation - New argument,
identity_args, accepts a list of arguments to pass call withingeom_point(), but outside ofaes(). This is used for scalar options or manually mapped vector such as point size or alpha - New datasets,
PimaIndiansDiabetes_long&PimaIndiansDiabetes_wide - Fixed the centering of axes across frames
- Fixed
scale_axes()to automatically scale to data rather than assume the data is scaled to [0, 1] - Changed notation from “slide(s)” to “frame(s)” through-out
- Deprecated
view_basis()andoblique_basis()in favor ofview_frame() - Fixed theta labeling on
view_manip_space() - Examples improved (simple case, adding more and more complexity) through-out
- Minor code, code comments, spelling, and grammar clean up through-out
spinifex v0.2.5
New utility
- theme_spinifex(), a ggplot theme, slightly lighter than theme_minimal().
Other changes
- Aesthetic arguments, which are now passed directly into
geom_point(aes(...))instead of hard-coded arguments - Removed ‘col’ (color), ‘pch’ (point character), ‘cex’ (point size) and ‘alpha’ (transparency) from rendering functions. These options are now passed directly into the elipsis,
ggplot2::geom_point(...) - Added wrapper for
gganimate::anim_save()inrender_gganimate() - Added wrapper for
htmlwidgets::saveWidget()inrender_plotly() - Clarified and more consistent documentation
spinifex v0.2.0!
Demo shiny app
run_app("radial_tour")
New functions
To accommodate interactive use, rather than predefined paths:
oblique_basis()oblique_frame()run_app()New shiny app!
New utility functions
map_absolute()is_orthonormal()slightly more general thantourr::is_orthonormal()
Other changes
- Added ‘cex’ (point size) and ‘alpha’ transparency arguments to rendering functions
- Argument naming and order consistency
- Clarified and more consistent documentation
- More defensive coding
spinifex v0.1.0
Initial submission to CRAN. Vignette: “spinifex”
Primary functions
-play_tour_path() - play_manual_tour()
Primary utility functions
view_basis()view_manip_space()