Skip to content

Commit 0589051

Browse files
committed
new plot
1 parent 6f8f6ad commit 0589051

File tree

12 files changed

+14
-5
lines changed

12 files changed

+14
-5
lines changed
-2.45 KB
Binary file not shown.
-538 KB
Loading

example/predict/AR/comp_norm/plot_ar_vs_predicted.R

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ library(ggplot2)
55
# Load the data
66
data <- read.csv("predict_data_AR.csv")
77

8+
max_value <- max(c(data$AR, data$predicted))
89
# Create the plot
910
ggplot(data, aes(x = AR, y = predicted)) +
1011
geom_point(color = 'blue', alpha = 0.6) + # Adds points with some transparency
@@ -13,8 +14,9 @@ ggplot(data, aes(x = AR, y = predicted)) +
1314
x = "Actual Values",
1415
y = "Predicted values") +
1516
theme_minimal() +
16-
theme(plot.title = element_text(hjust = 0.5))
17-
17+
theme(plot.title = element_text(hjust = 0.5)) +
18+
xlim(NA, 250) + # Set x-axis limit
19+
ylim(NA, 250) # Set y-axis limit
1820
# Save the plot as a PNG file
1921
ggsave("ar_comp.png")
2022

-1.11 KB
Binary file not shown.
-226 KB
Loading

example/predict/AR/uncomp_norm/plot_ar_vs_predicted.R

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ ggplot(data, aes(x = AR, y = predicted)) +
1313
x = "Actual Values",
1414
y = "Predicted values") +
1515
theme_minimal() +
16-
theme(plot.title = element_text(hjust = 0.5))
16+
theme(plot.title = element_text(hjust = 0.5))+
17+
xlim(NA, 250) + # Set x-axis limit
18+
ylim(NA, 250) # Set y-axis limit
1719

1820
# Save the plot as a PNG file
1921
ggsave("ar_uncomp.png")
-2.56 KB
Binary file not shown.

example/predict/reg/reg_comp_norm_success_3/plot_ar_vs_predicted.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ ggplot(data, aes(x = AR, y = predicted)) +
1313
x = "Actual Values",
1414
y = "Predicted values") +
1515
theme_minimal() +
16-
theme(plot.title = element_text(hjust = 0.5))
16+
theme(plot.title = element_text(hjust = 0.5)) +
17+
xlim(NA, 175) + # Set x-axis limit
18+
ylim(NA, 175) # Set y-axis limit
19+
1720

1821
# Save the plot as a PNG file
1922
ggsave("reg_comp.png")
-436 KB
Loading
-1.77 KB
Binary file not shown.

0 commit comments

Comments
 (0)