Skip to content

Commit e8acc72

Browse files
author
feddelegrand7
committed
deleting the emoji_histogram function + other fix
1 parent 4cbc813 commit e8acc72

10 files changed

Lines changed: 60 additions & 250 deletions

File tree

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export(areaBand)
66
export(areaChart)
77
export(barChart)
88
export(barChartRace)
9-
export(emoji_histogram)
109
export(flame)
1110
export(flower)
1211
export(glass_fill)

R/emoji_histogram.R

Lines changed: 0 additions & 106 deletions
This file was deleted.

R/flame.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
#'
2020
#' @examples
2121
#' flame(intensity = 5)
22-
#' flame(intensity = 50, flameGradientColors = c("lightblue", "blue", "darkblue"), flameOutline = "navy")
22+
#' flame(
23+
#' intensity = 50,
24+
#' flameGradientColors = c("lightblue", "blue", "darkblue")
25+
#' )
2326
flame <- function(
2427
intensity = 50,
2528
flameGradientColors = c("white", "yellow", "darkred"),

R/glass_fill.R

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
#' Visualize a Glass Filling with Water using D3
22
#'
3+
#' @description
34
#' This function generates an SVG visualization of a glass filled with water to a specified level,
4-
#' rendered via D3 using the `r2d3` package. The fill level, appearance of the glass, and label settings
5+
#' rendered via D3 using the r2d3 package. The fill level, appearance of the glass, and label settings
56
#' can be customized.
67
#'
7-
#' @param fill_level Numeric value between 0 and 1 indicating how full the glass should appear (e.g., 0.65 = 65% full).
8+
#' @param fill_level Numeric value between 0 and 1 indicating how full the glass should appear.
89
#' @param glassWidth Width of the glass in pixels.
910
#' @param glassHeight Height of the glass in pixels.
1011
#' @param strokeColor Color of the glass outline (stroke).
@@ -16,6 +17,8 @@
1617
#' @param titleColor Color of the title text displayed below the glass.
1718
#' @param titleFontSize Font size of the title text, defaults to "14px"
1819
#' @param titleText Text to display as the title beneath the glass.
20+
#' @param font The font name that will be used for the plot text. Defaults to
21+
#' "Verdana, Geneva, Tahoma, sans-serif"
1922
#'
2023
#' @return An interactive D3 visualization rendered in the RStudio Viewer or web browser.
2124
#' @examples

R/heart_fill.R

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,32 @@
11
#' Visualize a Heart Filling with Color using D3
22
#'
33
#' This function renders a heart-shaped SVG graphic that fills from the bottom up based on the provided level.
4-
#' The appearance of the heart and accompanying label can be fully customized.
4+
#' The appearance of the heart and the optional label can be fully customized. It uses the `r2d3` package to
5+
#' render the visualization with D3.js.
56
#'
6-
#' @param fill_level Numeric value between 0 and 1 indicating how full the heart should appear (e.g., 0.8 = 80% full).
7-
#' @param heartSize Numeric width/height scale for the heart shape in pixels.
7+
#' @param fill_level Value between 0 and 1 indicating how full the heart should appear (e.g., 0.65).
8+
#' @param heartSize Width/height scale of the heart in pixels.
89
#' @param strokeColor Color of the heart outline.
9-
#' @param strokeWidth Width of the outline stroke.
10-
#' @param fillColor Fill color of the heart (used to indicate level).
11-
#' @param renderFillLabel Logical; if `TRUE`, a percentage label is shown above the heart.
10+
#' @param strokeWidth Width of the heart outline stroke.
11+
#' @param fillColor Color used to fill the heart based on the fill level.
12+
#' @param renderFillLabel Whether to display a percentage label above the heart.
1213
#' @param labelColor Color of the percentage label text.
13-
#' @param labelFontSize Font size of the percentage label text (e.g., `"16px"`).
14-
#' @param font Font family for text.
14+
#' @param labelFontSize Font size of the percentage label text (e.g., "16px").
15+
#' @param titleText Optional title displayed below the heart.
16+
#' @param titleColor Color of the title text.
17+
#' @param titleFontSize Font size of the title text (e.g., "14px").
18+
#' @param font Font family used for text labels and title.
19+
#'
20+
#' @return An interactive D3 heart fill visualization rendered in the RStudio Viewer or web browser.
1521
#'
16-
#' @return An interactive D3 heart fill visualization.
1722
#' @examples
1823
#' heart_fill(fill_level = 0.9)
19-
#' heart_fill(fill_level = 0.4, fillColor = "pink", labelColor = "#C00", strokeColor = "#900")
24+
#' heart_fill(
25+
#' fill_level = 0.4,
26+
#' fillColor = "pink",
27+
#' labelColor = "#C00",
28+
#' strokeColor = "#900"
29+
#' )
2030
#'
2131
#' @export
2232
heart_fill <- function(

man/emoji_histogram.Rd

Lines changed: 0 additions & 100 deletions
This file was deleted.

man/flame.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/glass_fill.Rd

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

man/heart_fill.Rd

Lines changed: 22 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)