sacvf
sacvf

Reputation: 2533

how to solve the error 'gswin32c.exe' not found?

I want submit figures to a journal which requires a high quality figures min dpi is 300 so I tried to save my plot with high quality but I am getting an error.

my plot contains several figures. Example:

  par(mfrow=c(2,4))
 x=c(5,2,4,5,8,7)
 x1=c(5,2,4,5,8,7)
 x2=c(5,2,4,5,8,7)
 x3=c(5,2,4,5,8,7)
 plot(x)
 plot(x1)
 plot(x2)
 bitmap("Plot118.tiff", height = 531, width = 1328, type="tifflzw", res=300)

    Error in system(paste(gsexe, "-help"), intern = TRUE, invisible = TRUE) : 
    'gswin32c.exe' not found

Any help please on how to solve this problem or to produce a high quality figure?

Upvotes: 1

Views: 2557

Answers (2)

zelite
zelite

Reputation: 1499

Easiest way: install RStudio, create your plot, and use the Export -> Save as PDF option. There you can specify the pdf size.

Upvotes: 2

Paul Hiemstra
Paul Hiemstra

Reputation: 60964

To be able to run the bitmap command, you need Ghostscript installed. Once that is installed, you probably also need to set the GS_CMD environment variable. See also this question on the R-devel mailing list.

Upvotes: 1

Related Questions