title: How to adjust column width in dataframe of foretsplotter function
body: <p>I am trying to create a forestplot, using forestplotter function, am able to get a beautiful graph, but am not able to see the entire graph, the column widths in few of the columns are so big, even if the string size is less, making the width of the entire graph, so big to see, can someone help me with this and also is it possible to align the datahrame contents uniformly centre aligned......Please help me with this</p>
  <p>The code and relevant data are</p>
  <pre><code>###Required packages###
  library(grid)
  library(forestploter)
  library(rmeta)
  library(gridExtra)
  
  #Data entered#
  df &lt;- data.frame(Study=c(&quot;A&quot;,&quot;B&quot;,&quot;C&quot;,&quot;D&quot;,&quot;Summary&quot;),
                   nA = c(24,187,36,26,273),
                   median_A = c(4.9,5.69,8.866995074,8.5,NA),
                   Q1A =c(3,2.86,4.495073892,2,NA),
                   Q3A =c(8.5,9.78,14.96305419,32,NA),
                   nP = c(23,193,36,26,278),
                   median_P = c(7.2,6.79,8.990147783,12.5,NA),
                   Q1P =c(3.4,3.59,4.002463054,2,NA),
                   Q3P =c(10.9,10.12,12.06896552,43,NA),
                   W = c(&quot;10.6%&quot;,&quot;80.8%&quot;,&quot;8.0%&quot;,&quot;0.70%&quot;,NA),
                   E=c(-2.3,-1.1,-0.123152709,-4,-1.16881587),
                   UL=c(1.161473203,0.156288294,3.881699516,10.02689306,-0.039791047),
                   LL=c(-5.761473203,-2.356288294,-4.128004935,-18.02689306,-2.297840692))
  
  #Calculate SE for box size#
  df$SE &lt;- (df$UL-df$E)/1.96
  
  #Column for Confidence intervals for Drug A and Placebo, with 2 significant digit#
  df$IQRA &lt;- sprintf(&quot;%.2f (%.2f to %.2f)&quot;,df$median_A,df$Q1A, df$Q3A)
  df$IQRP &lt;- sprintf(&quot;%.2f (%.2f to %.2f)&quot;,df$median_P,df$Q1P, df$Q3P)
  
  #Column for Confidence intervals for NET EFFECT, with 2 significant digit#
  df$MD &lt;- sprintf(&quot;%.2f (%.2f to %.2f)&quot;, df$E, df$LL, df$UL)
  
  #Create a column with space for forest plot#
  df$&quot; &quot;&lt;- paste(rep(&quot; &quot;, 16), collapse = &quot; &quot;)
  
  
  ##Forest plot theme##
  #To be modified as needed#
  
  ftn &lt;-forest_theme(
    base_size = 16,
    base_family = &quot;serif&quot;,
    ci_pch = 15,
    ci_col = &quot;black&quot;,
    ci_lty = 1,
    ci_lwd = 1,
    ci_Theight = 0.25,
    legend_name = &quot; &quot;,
    legend_position = &quot;right&quot;,legend_value = &quot;&quot;,
    xaxis_lwd = 1,
    xaxis_cex = 0.7,
    refline_lwd = 1,
    refline_lty = &quot;dashed&quot;,
    refline_col = &quot;red&quot;,
    summary_fill = &quot;blue&quot;,
    summary_col = &quot;blue&quot;,
    footnote_cex = 0.4,
    footnote_fontface = &quot;plain&quot;,
    footnote_col = &quot;black&quot;,
    title_just = c(&quot;center&quot;),
    title_cex = 1.1,
    title_fontface = &quot;bold&quot;,
    title_col = &quot;black&quot;,
    show.rownames = FALSE)
  
  ##Table in Order for Forest plot##
  #First get Column names#
  colnames(df)
  df2 &lt;-df[,c(1,2,15,6,16,18,17)]
  #Make NA cells empty
  df2[5,3] &lt;-c(&quot; &quot;)
  df2[5,5] &lt;-c(&quot; &quot;)
  
  ##Forestplot##
  plot&lt;-forest(df2,
         est = df$E,
         lower = df$LL, 
         upper = df$UL,
         sizes = (df$SE/10),
         ci_column = 6,
         ref_line = 0,
         arrow_lab = c(&quot;Drug A Better&quot;, &quot;Placebo Better&quot;),
         xlim = c(-7, 6),
         is_summary = c(FALSE,FALSE,FALSE,FALSE,TRUE),
         xlog = FALSE,
         ticks_digits = 0,ticks_at = c(-6,0,6),
         theme = ftn)
  
  ##Show plot
  print(plot, autofit = FALSE)
  </code></pre>