New improved version of thlGraphs released! Plots can now be built with THL's own layering functions. Wrappers use sensible defaults to match the graphical guidelines. This allows more flexibility and options to built all different kinds of plots.
The following functions are now replaced and deprecated:
thlTheme->theme_thl- defines now much more details
thlColors- Replaced now with multiple different functions which allow many ways to refer to the colors.
palette_thl: refer to a color palette with a name and ncolors_thl: refer to predefined colors with a namecolorset_thl: refer to predefined groups of colors
thlColorsDisplayplot_colors: general color plotting function, shows also the hex valuesplot_palette_thl: plots a named color palette
thlLinePlot->plot_line_thl- Uses now other thlGraphs built-in layer functions
These new functions can be used just like the common ggplot2 layer elements.
geom_point_thl: sets point type to white filled point and sizegeom_line_thl: sets line sizegeom_col_thl: sets border color white and column widthgeom_bar_thl: sets border color white and column widthscale_y_continuous_thl: sets breaks nicely and formats numbers on breaks, removes expanding from y-scalescale_x_continuous_thl: sets breaks nicely and formats numbers on breaks
The following functions help with other plotting related things.
format_thl: number formatting in different languageswaiver_thl: switch in some functions for using the default valuescolornames_thl: list names of predefined colors
To make it easies to add new colors and palettes or change existing ones, thlgraphs uses now internal data to define colors and palettes.