R ggplot geom_raster increase row height to avoid overlapping of pointsggplot: How to increase spacing between faceted plots?Adjust specific text lables in ggplot to avoid overlaphow to avoid overlapping labels with identical data points in scatterplot / ggplot?Increase size of points ggplotIncreasing minimum point size in ggplot geom_pointgeom_raster faceted plot with ggplot2: control row heightAvoid overlapping lines in a ggplothow to show in ggplot overlapping points as “segmented” pointsFilling rows when using facet_grid and geom_raster in ggplot2Using geom_raster function in ggplot, I conver my data to data frame, but it does not work
What should I wear to go and sign an employment contract?
Alternative classical explanation of the Stern-Gerlach Experiment?
FIFO data structure in pure C
Physically unpleasant work environment
How come Arya Stark wasn't hurt by this in Game of Thrones Season 8 Episode 5?
What color to choose as "danger" if the main color of my app is red
What do you call bracelets you wear around the legs?
Combining two Lorentz boosts
How to laser-level close to a surface
Why does the setUID bit work inconsistently?
how to create an executable file for an AppleScript?
Windows reverting changes made by Linux to FAT32 partion
Why does the U.S military use mercenaries?
When did Britain learn about the American Declaration of Independence?
Why use a retrograde orbit?
Prints each letter of a string in different colors. C#
Will this series of events work to drown the Tarrasque?
Does the US Supreme Court vote using secret ballots?
Parse a C++14 integer literal
Is there any deeper thematic meaning to the white horse that Arya finds in The Bells (S08E05)?
Pedaling at different gear ratios on flat terrain: what's the point?
Why would company (decision makers) wait for someone to retire, rather than lay them off, when their role is no longer needed?
Largest memory peripheral for Sinclair ZX81?
Divisor Rich and Poor Numbers
R ggplot geom_raster increase row height to avoid overlapping of points
ggplot: How to increase spacing between faceted plots?Adjust specific text lables in ggplot to avoid overlaphow to avoid overlapping labels with identical data points in scatterplot / ggplot?Increase size of points ggplotIncreasing minimum point size in ggplot geom_pointgeom_raster faceted plot with ggplot2: control row heightAvoid overlapping lines in a ggplothow to show in ggplot overlapping points as “segmented” pointsFilling rows when using facet_grid and geom_raster in ggplot2Using geom_raster function in ggplot, I conver my data to data frame, but it does not work
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
Hi ggplot and R experts,
A newbie here. I have a usecase where I am using geom_raster
for better optimisation.
Here is the reproducible R script:
require(ggplot2)
library(ggrepel)
# Create the data frame.
sales_data <- data.frame(
emp_name = rep(c("Sam", "Dave", "John", "Harry", "Clark", "Kent", "Kenneth", "Richard", "Clement", "Toby", "Jonathan"), times = 50),
month = as.factor(rep(c("Jan", "Feb", "Mar", "Jan", "Feb", "Mar", "Jan", "Feb", "Mar", "Jan", "Jan"), times = 50)),
dept_name = as.factor(rep(c("Production", "Services", "Support", "Support", "Services", "Production", "Production", "Support", "Support", "Support", "Production"), times = 50)),
revenue = rep(c(100, 200, 300, 400, 500, 600, 500, 400, 300, 200, 500), times = 50),
status = rep(c("Low", "Medium", "Medium", "High", "Very High", "Very High", "Very High", "High", "Medium", "Medium", "Low"), times = 50)
)
sales_data$month <- factor(sales_data$month, levels = c("Jan", "Feb", "Mar"))
month_vector <- levels(sales_data$month)
number_of_enteries <- nrow(sales_data)
sales_data$status <- factor(sales_data$status, levels = c("Low", "Medium", "High", "Very High"))
sales_data$month <- as.integer(sales_data$month)
ggplot(sales_data, aes(x = month, y = dept_name)) +
geom_raster(data = expand.grid(sales_data$month, sales_data$dept_name),
aes(x = Var1, y = Var2, width=1, height=1), fill = NA, col = 'gray50', lty = 1) + #default width and height is 1
#SAFE: geom_point(aes(size = revenue, col = revenue),
# shape = 16, position = position_jitter(seed = 0), show.legend = F) +
geom_point(aes(size = status, colour = cut(revenue, c(-Inf, 199, 301, Inf)) ),
shape = 16, position = position_jitter(seed = 0), show.legend = F) +
scale_color_manual(name = "revenue",
values = c("(-Inf,199]" = "red",
"(199,301]" = "#ffbf00", #amber
"(301, Inf]" = "green") ) +
geom_text(aes(label = revenue), size=4, vjust = 1.6, position = position_jitter(seed = 0)) + #try with geom_text
theme_bw() +
theme(
axis.title = element_blank(),
axis.ticks = element_blank(),
plot.background = element_blank(),
axis.line = element_blank(),
panel.border = element_blank(),
panel.grid = element_blank(),
axis.text = element_text(colour = "blue", face = "plain", size =11)
) +
scale_x_continuous(limits=c(0.5,3.5), expand = c(0,0), breaks = 1:length(month_vector), labels = month_vector) +
# Remove extra whitespace from y-axis so lines are against the axis
scale_y_discrete(expand = c(0,0)) +
# Add straight lines at each factor level, shifted left/down so they're between values
geom_hline(yintercept = as.numeric(sales_data$dept_name) + 0.5) +
geom_vline(xintercept = as.numeric(sales_data$month) - 0.5, color = "grey")
Output Plot:
As, one can see that, lots of overlapping is there.
I have 2 questions here:
How we can increase the height of row so that there will be more space for
geom_point
. Can we usefacet_grid
in this case ? I am not sure here, how and whether to usefacet_grid
Is there any other way than
position_jitter
to randomly plot bubbles so that they don't overlap ?
Please help ! I am sure this question will help many beginners in future as it is not addressed anywhere in SO or other platform.
r ggplot2 geom-raster
|
show 2 more comments
Hi ggplot and R experts,
A newbie here. I have a usecase where I am using geom_raster
for better optimisation.
Here is the reproducible R script:
require(ggplot2)
library(ggrepel)
# Create the data frame.
sales_data <- data.frame(
emp_name = rep(c("Sam", "Dave", "John", "Harry", "Clark", "Kent", "Kenneth", "Richard", "Clement", "Toby", "Jonathan"), times = 50),
month = as.factor(rep(c("Jan", "Feb", "Mar", "Jan", "Feb", "Mar", "Jan", "Feb", "Mar", "Jan", "Jan"), times = 50)),
dept_name = as.factor(rep(c("Production", "Services", "Support", "Support", "Services", "Production", "Production", "Support", "Support", "Support", "Production"), times = 50)),
revenue = rep(c(100, 200, 300, 400, 500, 600, 500, 400, 300, 200, 500), times = 50),
status = rep(c("Low", "Medium", "Medium", "High", "Very High", "Very High", "Very High", "High", "Medium", "Medium", "Low"), times = 50)
)
sales_data$month <- factor(sales_data$month, levels = c("Jan", "Feb", "Mar"))
month_vector <- levels(sales_data$month)
number_of_enteries <- nrow(sales_data)
sales_data$status <- factor(sales_data$status, levels = c("Low", "Medium", "High", "Very High"))
sales_data$month <- as.integer(sales_data$month)
ggplot(sales_data, aes(x = month, y = dept_name)) +
geom_raster(data = expand.grid(sales_data$month, sales_data$dept_name),
aes(x = Var1, y = Var2, width=1, height=1), fill = NA, col = 'gray50', lty = 1) + #default width and height is 1
#SAFE: geom_point(aes(size = revenue, col = revenue),
# shape = 16, position = position_jitter(seed = 0), show.legend = F) +
geom_point(aes(size = status, colour = cut(revenue, c(-Inf, 199, 301, Inf)) ),
shape = 16, position = position_jitter(seed = 0), show.legend = F) +
scale_color_manual(name = "revenue",
values = c("(-Inf,199]" = "red",
"(199,301]" = "#ffbf00", #amber
"(301, Inf]" = "green") ) +
geom_text(aes(label = revenue), size=4, vjust = 1.6, position = position_jitter(seed = 0)) + #try with geom_text
theme_bw() +
theme(
axis.title = element_blank(),
axis.ticks = element_blank(),
plot.background = element_blank(),
axis.line = element_blank(),
panel.border = element_blank(),
panel.grid = element_blank(),
axis.text = element_text(colour = "blue", face = "plain", size =11)
) +
scale_x_continuous(limits=c(0.5,3.5), expand = c(0,0), breaks = 1:length(month_vector), labels = month_vector) +
# Remove extra whitespace from y-axis so lines are against the axis
scale_y_discrete(expand = c(0,0)) +
# Add straight lines at each factor level, shifted left/down so they're between values
geom_hline(yintercept = as.numeric(sales_data$dept_name) + 0.5) +
geom_vline(xintercept = as.numeric(sales_data$month) - 0.5, color = "grey")
Output Plot:
As, one can see that, lots of overlapping is there.
I have 2 questions here:
How we can increase the height of row so that there will be more space for
geom_point
. Can we usefacet_grid
in this case ? I am not sure here, how and whether to usefacet_grid
Is there any other way than
position_jitter
to randomly plot bubbles so that they don't overlap ?
Please help ! I am sure this question will help many beginners in future as it is not addressed anywhere in SO or other platform.
r ggplot2 geom-raster
Not only is there a lot of overlap, but in each of the six panels, one or at most two numbers occur again and again. For this sample data at least, this might not be the most informative type of plot to begin with. And in any case, you might consider using the color to indicate the revenue (e.g., lighter color -- less revenue).
– dipetkov
Mar 23 at 18:56
Hi dipetkov, this is for the demo for SO. let's say in real case I have some fields which are quite different. Then is there any way out ?
– Om Prakash Sao
Mar 23 at 20:50
Wouldn't it be difficult to read that many labels? Perhaps you can consider displaying the labels for just some points? The "most important" points according to some definition of importance.
– dipetkov
Mar 23 at 21:14
If the size of plot is right there will be lesser overlap and with geom_text_repel and jitter use overlap will be minimum. I want to know that can we increase the height of the row ?
– Om Prakash Sao
Mar 23 at 23:57
1
You can specify the size of the plot when you save it withggsave
. See thewidth
andheight
arguments.
– dipetkov
Mar 24 at 0:01
|
show 2 more comments
Hi ggplot and R experts,
A newbie here. I have a usecase where I am using geom_raster
for better optimisation.
Here is the reproducible R script:
require(ggplot2)
library(ggrepel)
# Create the data frame.
sales_data <- data.frame(
emp_name = rep(c("Sam", "Dave", "John", "Harry", "Clark", "Kent", "Kenneth", "Richard", "Clement", "Toby", "Jonathan"), times = 50),
month = as.factor(rep(c("Jan", "Feb", "Mar", "Jan", "Feb", "Mar", "Jan", "Feb", "Mar", "Jan", "Jan"), times = 50)),
dept_name = as.factor(rep(c("Production", "Services", "Support", "Support", "Services", "Production", "Production", "Support", "Support", "Support", "Production"), times = 50)),
revenue = rep(c(100, 200, 300, 400, 500, 600, 500, 400, 300, 200, 500), times = 50),
status = rep(c("Low", "Medium", "Medium", "High", "Very High", "Very High", "Very High", "High", "Medium", "Medium", "Low"), times = 50)
)
sales_data$month <- factor(sales_data$month, levels = c("Jan", "Feb", "Mar"))
month_vector <- levels(sales_data$month)
number_of_enteries <- nrow(sales_data)
sales_data$status <- factor(sales_data$status, levels = c("Low", "Medium", "High", "Very High"))
sales_data$month <- as.integer(sales_data$month)
ggplot(sales_data, aes(x = month, y = dept_name)) +
geom_raster(data = expand.grid(sales_data$month, sales_data$dept_name),
aes(x = Var1, y = Var2, width=1, height=1), fill = NA, col = 'gray50', lty = 1) + #default width and height is 1
#SAFE: geom_point(aes(size = revenue, col = revenue),
# shape = 16, position = position_jitter(seed = 0), show.legend = F) +
geom_point(aes(size = status, colour = cut(revenue, c(-Inf, 199, 301, Inf)) ),
shape = 16, position = position_jitter(seed = 0), show.legend = F) +
scale_color_manual(name = "revenue",
values = c("(-Inf,199]" = "red",
"(199,301]" = "#ffbf00", #amber
"(301, Inf]" = "green") ) +
geom_text(aes(label = revenue), size=4, vjust = 1.6, position = position_jitter(seed = 0)) + #try with geom_text
theme_bw() +
theme(
axis.title = element_blank(),
axis.ticks = element_blank(),
plot.background = element_blank(),
axis.line = element_blank(),
panel.border = element_blank(),
panel.grid = element_blank(),
axis.text = element_text(colour = "blue", face = "plain", size =11)
) +
scale_x_continuous(limits=c(0.5,3.5), expand = c(0,0), breaks = 1:length(month_vector), labels = month_vector) +
# Remove extra whitespace from y-axis so lines are against the axis
scale_y_discrete(expand = c(0,0)) +
# Add straight lines at each factor level, shifted left/down so they're between values
geom_hline(yintercept = as.numeric(sales_data$dept_name) + 0.5) +
geom_vline(xintercept = as.numeric(sales_data$month) - 0.5, color = "grey")
Output Plot:
As, one can see that, lots of overlapping is there.
I have 2 questions here:
How we can increase the height of row so that there will be more space for
geom_point
. Can we usefacet_grid
in this case ? I am not sure here, how and whether to usefacet_grid
Is there any other way than
position_jitter
to randomly plot bubbles so that they don't overlap ?
Please help ! I am sure this question will help many beginners in future as it is not addressed anywhere in SO or other platform.
r ggplot2 geom-raster
Hi ggplot and R experts,
A newbie here. I have a usecase where I am using geom_raster
for better optimisation.
Here is the reproducible R script:
require(ggplot2)
library(ggrepel)
# Create the data frame.
sales_data <- data.frame(
emp_name = rep(c("Sam", "Dave", "John", "Harry", "Clark", "Kent", "Kenneth", "Richard", "Clement", "Toby", "Jonathan"), times = 50),
month = as.factor(rep(c("Jan", "Feb", "Mar", "Jan", "Feb", "Mar", "Jan", "Feb", "Mar", "Jan", "Jan"), times = 50)),
dept_name = as.factor(rep(c("Production", "Services", "Support", "Support", "Services", "Production", "Production", "Support", "Support", "Support", "Production"), times = 50)),
revenue = rep(c(100, 200, 300, 400, 500, 600, 500, 400, 300, 200, 500), times = 50),
status = rep(c("Low", "Medium", "Medium", "High", "Very High", "Very High", "Very High", "High", "Medium", "Medium", "Low"), times = 50)
)
sales_data$month <- factor(sales_data$month, levels = c("Jan", "Feb", "Mar"))
month_vector <- levels(sales_data$month)
number_of_enteries <- nrow(sales_data)
sales_data$status <- factor(sales_data$status, levels = c("Low", "Medium", "High", "Very High"))
sales_data$month <- as.integer(sales_data$month)
ggplot(sales_data, aes(x = month, y = dept_name)) +
geom_raster(data = expand.grid(sales_data$month, sales_data$dept_name),
aes(x = Var1, y = Var2, width=1, height=1), fill = NA, col = 'gray50', lty = 1) + #default width and height is 1
#SAFE: geom_point(aes(size = revenue, col = revenue),
# shape = 16, position = position_jitter(seed = 0), show.legend = F) +
geom_point(aes(size = status, colour = cut(revenue, c(-Inf, 199, 301, Inf)) ),
shape = 16, position = position_jitter(seed = 0), show.legend = F) +
scale_color_manual(name = "revenue",
values = c("(-Inf,199]" = "red",
"(199,301]" = "#ffbf00", #amber
"(301, Inf]" = "green") ) +
geom_text(aes(label = revenue), size=4, vjust = 1.6, position = position_jitter(seed = 0)) + #try with geom_text
theme_bw() +
theme(
axis.title = element_blank(),
axis.ticks = element_blank(),
plot.background = element_blank(),
axis.line = element_blank(),
panel.border = element_blank(),
panel.grid = element_blank(),
axis.text = element_text(colour = "blue", face = "plain", size =11)
) +
scale_x_continuous(limits=c(0.5,3.5), expand = c(0,0), breaks = 1:length(month_vector), labels = month_vector) +
# Remove extra whitespace from y-axis so lines are against the axis
scale_y_discrete(expand = c(0,0)) +
# Add straight lines at each factor level, shifted left/down so they're between values
geom_hline(yintercept = as.numeric(sales_data$dept_name) + 0.5) +
geom_vline(xintercept = as.numeric(sales_data$month) - 0.5, color = "grey")
Output Plot:
As, one can see that, lots of overlapping is there.
I have 2 questions here:
How we can increase the height of row so that there will be more space for
geom_point
. Can we usefacet_grid
in this case ? I am not sure here, how and whether to usefacet_grid
Is there any other way than
position_jitter
to randomly plot bubbles so that they don't overlap ?
Please help ! I am sure this question will help many beginners in future as it is not addressed anywhere in SO or other platform.
r ggplot2 geom-raster
r ggplot2 geom-raster
edited Mar 23 at 17:41
Om Prakash Sao
asked Mar 23 at 17:33
Om Prakash SaoOm Prakash Sao
1,5111330
1,5111330
Not only is there a lot of overlap, but in each of the six panels, one or at most two numbers occur again and again. For this sample data at least, this might not be the most informative type of plot to begin with. And in any case, you might consider using the color to indicate the revenue (e.g., lighter color -- less revenue).
– dipetkov
Mar 23 at 18:56
Hi dipetkov, this is for the demo for SO. let's say in real case I have some fields which are quite different. Then is there any way out ?
– Om Prakash Sao
Mar 23 at 20:50
Wouldn't it be difficult to read that many labels? Perhaps you can consider displaying the labels for just some points? The "most important" points according to some definition of importance.
– dipetkov
Mar 23 at 21:14
If the size of plot is right there will be lesser overlap and with geom_text_repel and jitter use overlap will be minimum. I want to know that can we increase the height of the row ?
– Om Prakash Sao
Mar 23 at 23:57
1
You can specify the size of the plot when you save it withggsave
. See thewidth
andheight
arguments.
– dipetkov
Mar 24 at 0:01
|
show 2 more comments
Not only is there a lot of overlap, but in each of the six panels, one or at most two numbers occur again and again. For this sample data at least, this might not be the most informative type of plot to begin with. And in any case, you might consider using the color to indicate the revenue (e.g., lighter color -- less revenue).
– dipetkov
Mar 23 at 18:56
Hi dipetkov, this is for the demo for SO. let's say in real case I have some fields which are quite different. Then is there any way out ?
– Om Prakash Sao
Mar 23 at 20:50
Wouldn't it be difficult to read that many labels? Perhaps you can consider displaying the labels for just some points? The "most important" points according to some definition of importance.
– dipetkov
Mar 23 at 21:14
If the size of plot is right there will be lesser overlap and with geom_text_repel and jitter use overlap will be minimum. I want to know that can we increase the height of the row ?
– Om Prakash Sao
Mar 23 at 23:57
1
You can specify the size of the plot when you save it withggsave
. See thewidth
andheight
arguments.
– dipetkov
Mar 24 at 0:01
Not only is there a lot of overlap, but in each of the six panels, one or at most two numbers occur again and again. For this sample data at least, this might not be the most informative type of plot to begin with. And in any case, you might consider using the color to indicate the revenue (e.g., lighter color -- less revenue).
– dipetkov
Mar 23 at 18:56
Not only is there a lot of overlap, but in each of the six panels, one or at most two numbers occur again and again. For this sample data at least, this might not be the most informative type of plot to begin with. And in any case, you might consider using the color to indicate the revenue (e.g., lighter color -- less revenue).
– dipetkov
Mar 23 at 18:56
Hi dipetkov, this is for the demo for SO. let's say in real case I have some fields which are quite different. Then is there any way out ?
– Om Prakash Sao
Mar 23 at 20:50
Hi dipetkov, this is for the demo for SO. let's say in real case I have some fields which are quite different. Then is there any way out ?
– Om Prakash Sao
Mar 23 at 20:50
Wouldn't it be difficult to read that many labels? Perhaps you can consider displaying the labels for just some points? The "most important" points according to some definition of importance.
– dipetkov
Mar 23 at 21:14
Wouldn't it be difficult to read that many labels? Perhaps you can consider displaying the labels for just some points? The "most important" points according to some definition of importance.
– dipetkov
Mar 23 at 21:14
If the size of plot is right there will be lesser overlap and with geom_text_repel and jitter use overlap will be minimum. I want to know that can we increase the height of the row ?
– Om Prakash Sao
Mar 23 at 23:57
If the size of plot is right there will be lesser overlap and with geom_text_repel and jitter use overlap will be minimum. I want to know that can we increase the height of the row ?
– Om Prakash Sao
Mar 23 at 23:57
1
1
You can specify the size of the plot when you save it with
ggsave
. See the width
and height
arguments.– dipetkov
Mar 24 at 0:01
You can specify the size of the plot when you save it with
ggsave
. See the width
and height
arguments.– dipetkov
Mar 24 at 0:01
|
show 2 more comments
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316522%2fr-ggplot-geom-raster-increase-row-height-to-avoid-overlapping-of-points%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55316522%2fr-ggplot-geom-raster-increase-row-height-to-avoid-overlapping-of-points%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Not only is there a lot of overlap, but in each of the six panels, one or at most two numbers occur again and again. For this sample data at least, this might not be the most informative type of plot to begin with. And in any case, you might consider using the color to indicate the revenue (e.g., lighter color -- less revenue).
– dipetkov
Mar 23 at 18:56
Hi dipetkov, this is for the demo for SO. let's say in real case I have some fields which are quite different. Then is there any way out ?
– Om Prakash Sao
Mar 23 at 20:50
Wouldn't it be difficult to read that many labels? Perhaps you can consider displaying the labels for just some points? The "most important" points according to some definition of importance.
– dipetkov
Mar 23 at 21:14
If the size of plot is right there will be lesser overlap and with geom_text_repel and jitter use overlap will be minimum. I want to know that can we increase the height of the row ?
– Om Prakash Sao
Mar 23 at 23:57
1
You can specify the size of the plot when you save it with
ggsave
. See thewidth
andheight
arguments.– dipetkov
Mar 24 at 0:01