Bug fix:
-
Bug 1
-
Error:
geom_hist_
fails and provides unexpected warnings -
Reason: the class name of the discrete variable in
ggplot2
is changed frommapped_discrete
toggplot2_mapped_discrete
. Therefore, many binary checks byis_mapped_discrete()
does not pass.
-
-
Bug 2
-
Error:
stat_count_
fails to draw bins -
Reason: a default setting of the bin width of the new version
ggplot2::stat_count
is recently set inset_params
; when we replicateset_params
of the old versionggplot2
, the bin width is not set.
-
Minor changes on documentations
-
For the radial coordinate, the serial histogram and density are displayed incorrectly (I suppose the engine,
ggplot2::coord_polar
makes some changes). So, in this version, these features are unavailable for now. Hopefully, we can bring them back in the next release. -
Give meaningful content to the size of each non-primitive glyph.
-
polygon glyph: the default size is 0.5 with unit "cm". The size of the polygon glyph is the "size" multiplies the polygon coordinates.
-
serial axes glyph: the default size is 1.5 with unit "cm".
-
If it is the "radial" coordinate, the size is the diameter of the enclosing;
-
If it is the "parallel" coordinate, the size is the width of the enclosing and the aspect ratio of height and width is 1:2.
-
-
image glyph: the default size is 1 with unit "cm". The height of the image is determined by
imageheight * size
and the width of the image isimagewidth * size
.
-
-
Export a data fame
NBAstats2021
which contains 30 observations and 42 statistics summaries, e.g. team names, points per game, etc.
-
Fix a bug: for
geom_histogram_
, the scaling strategy (scale.y
andas.mix
) is not correct. -
The argument name
adjust
(adjust the proportional maximum height of the estimate, i.e. density, histogram, ...) is changed toprop
sinceadjust
has already been used in setting thedensity
.
-
Fix a bug: in this version, all functions can handle data with
NA
s -
For functions
geom_hist_
andgeom_density2d
, if the inputx
andy
are both numerical, neither will be considered as the group variable and a warning will be given. -
coord_radar
(deprecated) -->coord_radial
; also un-export the functioncoord_polar
(reduce the confusion) -
Update documentation (fix typos; make it more readable; point out potential risks of
coord_serialaxes
)
For polygon glyph, if the fill is NA (the fill color is none), it is a poly-line glyph; if the fill is not NA (some real color), it is a polygon glyph. In the old version 0.1.0
, the output can only be one type. For example, if fill = c(NA, "red")
, then, NA dominates that both glyphs are polylines. In this version, it is more flexible that both polygon and polyline can appear on the same plot with one geom_polygon_glyph
call.
Date of Birth: 2021-01-05