Related changes
← Ggplot2
Jump to navigation
Jump to search
Enter a page name to see changes on pages linked to or from that page. (To see members of a category, enter Category:Name of category). Changes to pages on your Watchlist are in bold.
List of abbreviations:
- N
- This edit created a new page (also see list of new pages)
- m
- This is a minor edit
- b
- This edit was performed by a bot
- (±123)
- The page size changed by this number of bytes
19 August 2024
13 August 2024
|
16:25 | Ggplot2 3 changes history +1,811 [Brb (3×)] | |||
|
16:25 (cur | prev) +1,691 Brb talk contribs (→How to change the default color palette in geom_XXX) | ||||
|
15:56 (cur | prev) +63 Brb talk contribs (→Simple example) | ||||
|
15:48 (cur | prev) +57 Brb talk contribs (→Ordered barplot and reorder()) |
|
15:54 | (Upload log) [Brb (2×)] | |||
|
15:54 Brb talk contribs uploaded File:Geom bar reorder.png (<syntaxhighlight lang='r'> library(ggplot2) library(forcats) data <- data.frame( category = c("A", "B", "C", "D"), value = c(3, 5, 2, 8) ) data$category <- fct_reorder(data$category, data$value) levels(data$category) # [1] "C" "A" "B" "D" ggplot(data, aes(x = category, y = value, fill = category)) + geom_bar(stat = "identity") + coord_flip() + labs(x = "Category", y = "Value") + theme_minimal() </syntaxhighlight>) | ||||
|
15:47 Brb talk contribs uploaded File:Geom bar simple.png (<syntaxhighlight lang='r'> library(ggplot2) data <- data.frame( category = c("A", "B", "C", "D"), value = c(3, 5, 2, 8) ) ggplot(data, aes(x = category, y = value, fill = category)) + geom_bar(stat = "identity") + coord_flip() + labs(x = "Category", y = "Value") + # scale_fill_manual(values = c("A" = "red", "B" = "blue", "C" = "green", "D" = "purple")) theme_minimal() </syntaxhighlight>) |
10:10 | R diffhist −1,026 Brb talk contribs (→tibble) |