What is grob and how to create grobs in ggplot

0 votes
What is grob and how to create grobs in ggplot?
Oct 29, 2019 in Data Analytics by ch
• 3,450 points
6,631 views

1 answer to this question.

0 votes

A grid graphical object (“grob”) is a description of a graphical item. These basic classes provide default behavior for validating, drawing, and modifying graphical objects.

Easier way to create different grob is using rectGrob(), circleGrob() by providing dimensions.

Ex:  

blank_rect = rectGrob(x = unit(0.5,"npc"),y = unit(0.5,"npc"),width = unit(1,"npc"),height = unit(1,"npc"),col = "grey")
answered Oct 29, 2019 by Cherukuri
• 33,030 points

Related Questions In Data Analytics

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Which package is used to do data import in R and Python and How do you import SAS data?

We can do data import using multiple ...READ MORE

answered Aug 24, 2018 in Data Analytics by Abhi
• 3,720 points
948 views
0 votes
2 answers

What is nominal data and how to deal with it?

Nominal Data: Nominal values represent discrete units and ...READ MORE

answered Sep 4, 2018 in Data Analytics by shams
• 3,670 points
1,732 views
0 votes
1 answer

How to plot side-by-side Plots with ggplot2 in R?

By Using gridExtra library we can easily ...READ MORE

answered Apr 16, 2018 in Data Analytics by DeepCoder786
• 1,720 points

edited Jun 9, 2020 by MD 8,874 views
0 votes
1 answer
0 votes
0 answers

Chart/plot to show 3 dimensions in a chart - R

Hi, I want to show chart with ...READ MORE

Jul 12, 2019 in Data Analytics by kalyan
553 views
0 votes
1 answer

Create a dual axis column/bar chart using ggplot in R

Add position = "stack" in geom_bar() function ...READ MORE

answered Nov 4, 2019 in Data Analytics by sindhu
4,670 views
0 votes
1 answer

How to put border for all legends together and separate borders for each legend in ggplot?

Hi Anitha, There are 2 functions used to ...READ MORE

answered Jul 24, 2019 in Data Analytics by Cherukuri
• 33,030 points
5,412 views
0 votes
1 answer

How to create and call groups in maps?

Groups are used to group a set ...READ MORE

answered Oct 14, 2019 in Data Analytics by Cherukuri
• 33,030 points
642 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP