Skip to content

Commit 4cbc813

Browse files
author
feddelegrand7
committed
minor fix
1 parent a07d6ae commit 4cbc813

1 file changed

Lines changed: 0 additions & 46 deletions

File tree

R/emoji_histogram.R

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -104,49 +104,3 @@ emoji_histogram <- function(
104104
)
105105

106106
}
107-
library(r2d3)
108-
109-
data <- data.frame(
110-
political_party = c("SDP", "AFD", "Linke", "güne", "fefe"),
111-
number_of_seats = sort(c(200, 40, 30, 20, 101))
112-
)
113-
114-
r2d3(
115-
data = data,
116-
script = system.file(
117-
"d3/scatterplot/parliamant_chart.js",
118-
package = "ddplot"
119-
),
120-
options = list(
121-
seatSize = 6,
122-
padding = 2,
123-
backgroundColor = "#f9f9f9",
124-
font = "Helvetica",
125-
title = "Bundestag Composition",
126-
legendX = 30, # Position top-left
127-
legendY = 40
128-
)
129-
)
130-
131-
132-
library(r2d3)
133-
134-
df <- data.frame(
135-
political_party = c("SDP", "AFD", "Linke"),
136-
number_of_seats = c(2000, 400, 300)
137-
)
138-
139-
r2d3(
140-
data = df,
141-
script = "parliament.js",
142-
options = list(
143-
seatSize = 6,
144-
padding = 2,
145-
backgroundColor = "#f9f9f9",
146-
font = "Helvetica",
147-
title = "Bundestag Composition",
148-
legendX = 30, # Position top-left
149-
legendY = 40
150-
)
151-
)
152-

0 commit comments

Comments
 (0)