Skip to content

Commit 1e18b6b

Browse files
authored
Update digestR.R
1 parent 93df008 commit 1e18b6b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

R/digestR.R

+4-1
Original file line numberDiff line numberDiff line change
@@ -1377,6 +1377,9 @@ library(png)
13771377
img_path <- system.file("extdata", "DigestRpicture.png", package = "digestR")
13781378
img <- readPNG(img_path)
13791379

1380+
xlim <- c(-1.5, 1.5) # Adjust the x-axis limits as needed
1381+
ylim <- c(-1.5, 1.5) # Adjust the y-axis limits as needed
1382+
13801383
# Create plot with no margins and appropriate limits
13811384
par(mar=c(0,0,0,0), bg='#0d0d0d')
13821385
plot(0, 0, type='n', xlab='', ylab='', axes=FALSE, xlim=xlim, ylim=ylim)
@@ -1416,7 +1419,7 @@ library(png)
14161419
text(0, -0.86, 'gp() - Generate New Proteome', col='#00b3b3', cex=1.1, font = 2) # Light blue
14171420
text(0, -0.94, 'pm() - Process Mascot files', col='#00b3b3', cex=1.1, font = 2) # Light blue
14181421
text(0, -1.02, 'fo() - Open *.dcf files', col='#00b3b3', cex=1.1, font = 2) # Light blue
1419-
1422+
14201423
# Force the graphics device to refresh
14211424
dev.flush()
14221425
}

0 commit comments

Comments
 (0)