Bigmart sales using R

r

#1

Hi,
In Univariate Analysis on Independent Variable(categorical variables) to combine p5, p6 and p7 for ggplot, I got an error :
code :
second_row = plot_grid(p5, p6, nrow = 1)

plot_grid(p4, second_row, ncol = 1)

Error in grid.Call(C_textBounds, as.graphicsAnnot(x$label), x$x, x$y, :
polygon edge not found (zero-width or zero-height?)
kindly


#2

if possible can u pls share the data pls…head(data)


#3

here is the head(data):

   Item_Identifier  Item_Weight  Item_Fat_Content  Item_Visibility   Item_Type     Item_MRP   Outlet_Identifier
           FDA15        9.300          Low Fat        0.01604730       Dairy        249.8092       OUT049
           DRC01        5.920          Regular        0.01927822       Soft Drinks   48.2692       OUT018
           FDN15       17.500          Low Fat        0.01676007       Meat          141.6180      OUT049
           FDX07       19.200          Regular        0.00000000       Fruits        182.0950      OUT010
           NCD19        8.930          Low Fat        0.00000000       Household     53.8614       OUT013
           FDP36       10.395          Regular        0.00000000       Baking Goods   51.4008      OUT018
               
   
   Outlet_Establishment_Year Outlet_Size Outlet_Location_Type
                      1999      Medium               Tier 1
                      2009      Medium               Tier 3
                      1999      Medium               Tier 1
                      1998                           Tier 3
                      1987        High               Tier 3
                      2009      Medium               Tier 3
         Outlet_Type Item_Outlet_Sales
 Supermarket Type1         3735.1380
 Supermarket Type2          443.4228
 Supermarket Type1         2097.2700
     Grocery Store          732.3800
 Supermarket Type1          994.7052
 Supermarket Type2          556.6088

#4

i am not getting what u want to be plot and what u wanna to be compare…have u checked the facet_wrap in ggplot , it may help you