-
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.
Fix bugs resulted from the new released version of ggplot2
3.4.0
-
- in
ggplot2
3.4.0, the aesthetic attributesize
is 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, aggplot
withgeom_col()
layer will be converted to an interactivel_hist
plot, which should not be (note that, onlygeom_bar
andgeom_histogram
could be turned an interactivel_hist
plot).
- in the new release of
- No functionality changes. A minor change is made on the website html.
-
Important Update: to transform a
loon
l_facet
object to aggplot
object, instead of relying on the packagepatchwork
to combine plots, the functionfacet_grid()
orfacet_wrap()
is used. -
A
patchwork
object can be transformed to aloon
l_compound
object. -
In the previous versions of
ggplot2
(< 3.3.5), bothnone
andFALSE
work inguides()
. In the latest version (e.g., >= 3.3.5),FALSE
is deprecated. Therefore, to setguides()
in the packageloon.ggplot
, we usenone
. -
Fix bugs:
-
To transform a
ggplot
object to aloon
plot, if the points shapes are between 21 to 25, the variable "fill" is used as theloon
points color; if the variable "fill" is not found or set as NA, then the variable "colour" is used. -
To transform a
ggplot
barplot to aloon
l_hist
widget, the binwidth is set as 1 by default.
-
-
Important Changes: when we turn a
loon
compound object to aggplot
object, packagepatchwork
is 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
loon
histogram to aggplot
object. -
A
loon
zenplot
can be turned to aggplot
object via the functionloon.ggplot()
(orloon2ggplot()
).
-
Fix a bug: in the previous versions, to transform a
ggplot
object to aloon
plot,showItemLabels
anditemLabels
are failed to be passed into thel_serialaxes
widget. -
Set
ggmulti
as "Imports" rather than the "Depends", and replacecoord_serialaxes
togeom_serialaxes
in order to avoid potential failures (incoord_serialaxes
). -
Executing the function
print.l_ggplot()
, a message will be given to show theloon
plot path name.
-
Class name modification: in the earlier versions, to transform a
ggplot
object with facets to aloon
plot, 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_ggplot
object (transformed from the ggplot with multiplefacet
s), 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
,byCOLS
andbyROWS
-
titles
: 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
loon
widgets, like otherl_compound
objects (e.g.,l_facet
,l_pairs
).
-
-
Two changes are made when we transform a
ggplot
histogram to aloon
l_hist
widget:-
If the
ggplot
histogram shows "density", the area of each category (grouped by color) is 1; however, in anl_hist
widget, 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
loon
histograms are joined into a linking group, the colors of each bin could be different from the originalggplot
object. Therefore, the statecolorStackingOrder
will 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 theloon
plot. -
active
: determine which geom layer could be interactive or which points could be activated.
-
-
From
loon
toggplot
, a logical argumentasAes
is 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
tidyverse
dependency
-
When a
loon
widget --> aggplot
object, several things are changed here:-
Add new features (e.g., 'Andrews curves');
-
If
z
is provided in the mapping aesthetics ofgeom_point
, anl_plot3D
object would be created. -
In
loon
, if points have non-primitive glyphs (viz.,text
glyph,pointrange
glyph,image
glyph,polygon
glyph, andserialaxes
glyph), in the transformation, functionsgeom_imageGlyph()
,geom_polygonGlyph()
,geom_pointrangeGlyph()
,geom_serialaxesGlyph()
andgeom_textGlyph()
are deprecated and not maintained any more. Instead, we use the packageggmulti
who provides functionsgeom_image_glyph()
,geom_polygon_glyph()
andgeom_serialaxes_glyph()
to draw the non-primitive glyphs (for the layergeom_text
andgeom_pointrange
, they would be turned into an interactive layer automatically. To turn them as static, one can set the argumentactiveGeomLayers
as 0). -
To transform an
l_serialaxes
object, the functionggSerialAxes()
is deprecated andggmulti::coord_serialaxes()
is used. -
Some
ggplot2
extensions provide newgeom
layers (e.g.,geom_textpath
). To transform these layers inloon
, one can customize the functionloonLayer()
.
-
- 2020-06-17: Welcome to the world