loon.ggplot 1.3.5
update external doc to include package names
-
Updated DESCRIPTION to requiere ggplot2 >= 3.5.0 and made necessary changes
- argument changes (trans -> transform, scale_name -> deprecated, palette is new) for calls to ggplot2::continuous_scale()
- is.ggplot() -> is_ggplot()
loon.ggplot 1.3.4
CRAN release: 2024-04-01
The recently released ggplot2 version 3.5.0 introduces coord_radial as a new function, which conflicts with the function we utilized, leading to the package check failure.
Review all examples to ensure they execute flawlessly.
loon.ggplot 1.3.3
CRAN release: 2022-11-12
Fix bugs resulted from the new released version of ggplot2 3.4.0
- in
ggplot23.4.0, the aesthetic attributesizeis no longer recommended to set the line width for all geometric objects. Most errors and warnings are caused by this.
- in
- in the new release of
ggplot2,GeomCol(geometric layergeom_col) is now inherited fromGeomBar(its supper class). Therefore, in the transformation, aggplotwithgeom_col()layer will be converted to an interactivel_histplot, which should not be (note that, onlygeom_barandgeom_histogramcould be turned an interactivel_histplot).
- in the new release of
loon.ggplot 1.3.2
CRAN release: 2022-10-03
- No functionality changes. A minor change is made on the website html.
loon.ggplot 1.3.1
CRAN release: 2022-02-07
Important Update: to transform a
loonl_facetobject to aggplotobject, instead of relying on the packagepatchworkto combine plots, the functionfacet_grid()orfacet_wrap()is used.A
patchworkobject can be transformed to aloonl_compoundobject.In the previous versions of
ggplot2(< 3.3.5), bothnoneandFALSEwork inguides(). In the latest version (e.g., >= 3.3.5),FALSEis deprecated. Therefore, to setguides()in the packageloon.ggplot, we usenone.-
Fix bugs:
To transform a
ggplotobject to aloonplot, if the points shapes are between 21 to 25, the variable “fill” is used as theloonpoints color; if the variable “fill” is not found or set as NA, then the variable “colour” is used.To transform a
ggplotbarplot to aloonl_histwidget, the binwidth is set as 1 by default.
loon.ggplot 1.3.0
CRAN release: 2021-09-28
Important Changes: when we turn a
looncompound object to aggplotobject, packagepatchworkis used (notGGally). The benefit is that the size of each plot can be different.Fix a bug: a error is encountered when we transform a swapped
loonhistogram to aggplotobject.A
loonzenplotcan be turned to aggplotobject via the functionloon.ggplot()(orloon2ggplot()).
loon.ggplot 1.2.1
CRAN release: 2021-06-10
Fix a bug: in the previous versions, to transform a
ggplotobject to aloonplot,showItemLabelsanditemLabelsare failed to be passed into thel_serialaxeswidget.Set
ggmultias “Imports” rather than the “Depends”, and replacecoord_serialaxestogeom_serialaxesin order to avoid potential failures (incoord_serialaxes).Executing the function
print.l_ggplot(), a message will be given to show theloonplot path name.
loon.ggplot 1.2.0
CRAN release: 2021-05-06
Class name modification: in the earlier versions, to transform a
ggplotobject with facets to aloonplot, the class of the returned object is c(“l_ggplot”, “l_compound”, “loon”). However, for anl_ggplot()function, the class of the returned object is c(“lggplot”, “gg”, “ggplot”) which is confusing. In this version, the class of the former one is c(“l_facet_ggplot”, “l_facet”, “l_compound”, “loon”); and the class of latter one is c(“l_ggplot”, “gg”, “ggplot”).-
For an
l_facet_ggplotobject (transformed from the ggplot with multiplefacets), the returned object is changed.-
In the earlier versions, the returned object is a list of three components:
plots: a list of loon widgets;facet: a list of four logical components,FacetWrap,FacetGrid,byCOLSandbyROWStitles: a list of three components, title of the whole widget, column subtitles and row subtitles.
In this version, the returned object is just a list of
loonwidgets, like otherl_compoundobjects (e.g.,l_facet,l_pairs).
-
-
Two changes are made when we transform a
ggplothistogram to aloonl_histwidget:If the
ggplothistogram shows “density”, the area of each category (grouped by color) is 1; however, in anl_histwidget, the whole area is 1 and the area of each category is proportional to the counts. Thus, after transformation, the y limits are identical but the display could be very different. To get a better display, the y limits are released (may result the different visual displays) and a message is given.Suppose the transformed
loonhistograms are joined into a linking group, the colors of each bin could be different from the originalggplotobject. Therefore, the statecolorStackingOrderwill be reset.
-
New interactive component
scaleTo: used to change the region (i.e., scale to selected points, active points, or a specific geometric layer) of theloonplot.active: determine which geom layer could be interactive or which points could be activated.
From
loontoggplot, a logical argumentasAesis given (default isTRUE). IfTRUE, the color, size, other aesthetics will be taken as variables and set in the functionaes(); else they are the general aesthetics attributes.Fix a bug: the NA of some n dimensional states should be checked before passing through.
A warning is given once multiple active layers are not set.
Remove the
tidyversedependency
loon.ggplot 1.1.0
CRAN release: 2021-03-21
-
When a
loonwidget –> aggplotobject, several things are changed here:Add new features (e.g., ‘Andrews curves’);
If
zis provided in the mapping aesthetics ofgeom_point, anl_plot3Dobject would be created.In
loon, if points have non-primitive glyphs (viz.,textglyph,pointrangeglyph,imageglyph,polygonglyph, andserialaxesglyph), in the transformation, functionsgeom_imageGlyph(),geom_polygonGlyph(),geom_pointrangeGlyph(),geom_serialaxesGlyph()andgeom_textGlyph()are deprecated and not maintained any more. Instead, we use the packageggmultiwho provides functionsgeom_image_glyph(),geom_polygon_glyph()andgeom_serialaxes_glyph()to draw the non-primitive glyphs (for the layergeom_textandgeom_pointrange, they would be turned into an interactive layer automatically. To turn them as static, one can set the argumentactiveGeomLayersas 0).To transform an
l_serialaxesobject, the functionggSerialAxes()is deprecated andggmulti::coord_serialaxes()is used.Some
ggplot2extensions provide newgeomlayers (e.g.,geom_textpath). To transform these layers inloon, one can customize the functionloonLayer().
