What is grob and how to create grobs in ggplot?

0 votes
What is grob and how to create grobs in ggplot?
Oct 29 in Data Analytics by ch
• 3,290 points
40 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 by Cherukuri
• 31,840 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 Anmol
• 3,620 points
40 views
0 votes
1 answer

Define a SQL query? What is the difference between SELECT and UPDATE Query? How do you use SQL in SAS?

Structured query language (SQL) is a programming ...READ MORE

answered Aug 24, 2018 in Data Analytics by Anmol
• 3,620 points
168 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
1,721 views
0 votes
1 answer
0 votes
0 answers
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 in Data Analytics by sindhu
84 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 in Data Analytics by Cherukuri
• 31,840 points
47 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 in Data Analytics by Cherukuri
• 31,840 points
13 views