Skip to content

Commit 95aecf3

Browse files
authored
Update digestR.R
1 parent b6c412d commit 95aecf3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

R/digestR.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -1372,7 +1372,7 @@ library(png)
13721372
# Load the image and get its dimensions
13731373
img_path <- system.file("extdata", "DigestRpicture.png", package = "digestR")
13741374
img <- readPNG(img_path)
1375-
1375+
plot(0, 0, type = 'n', xlab = '', ylab = '', axes = FALSE, xlim = c(-1.5, 1.5), ylim = c(-1.5, 1.5))
13761376
# Display the image properly (full window)
13771377
rasterImage(img, -1.5, -1.5, 1.5, 1.5)
13781378

@@ -1399,7 +1399,8 @@ library(png)
13991399
text(0, -0.53, 'Naturally Digested Amino acid Sequences', col='#4da6ff', cex=1.8, font=2) # Main text
14001400

14011401
# Version and command text, shifted further downwards
1402-
text(0, -0.75, paste('version 1.0.0', pkgVar$version), col='#00b3b3', font=2) # Dynamic color
1402+
version <- '1.0.0'
1403+
text(0, -0.75, paste('version', version), col = '#00b3b3', font = 2) # Dynamic color # Dynamic color
14031404

14041405
# Clean, minimal function list with better spacing and shifted downwards
14051406
text(0, -0.86, 'gp() - Generate New Proteome', col='#00b3b3', cex=1.1, font = 2) # Light blue

0 commit comments

Comments
 (0)