This is a file from the Wikimedia Commons
From Wikipedia, the free encyclopedia

Original file(SVG file, nominally 675 × 506 pixels, file size: 238 KB)

Summary

Description
English: Freddie Mac weekly Primary Mortgage Market Survey (PMMS) from April 1971 to March 2024, showing 30-Yr FRM, 15-Yr FRM, and 5/1 ARMs. Source: https://www.freddiemac.com/pmms
Date
Source Own work
Author Semper Exploro

Source

# packages
library(tidyverse)

# read pmms data
df <- read_csv("PMMS_history.csv")

# make date into date format
df <- df %>%
  mutate(date = as.Date(date, format = "%m/%d/%Y"))

# arrange data in tidy format
df <- df %>%
  select(date, pmms30, pmms15, pmms51) %>%
  rename("30-Yr FRM" = 2, "15-Yr FRM" = 3, "5/1 ARM" = 4) %>%
  pivot_longer(-date, names_to = "rate_type", values_to = "rate_value")
 
# generate line plot for rates
df %>%
  ggplot(aes(x = date, y = rate_value/100, color = rate_type)) +
  geom_line() +
  scale_x_date(date_labels = "%Y", date_breaks = "8 years") +
  scale_y_continuous(labels = scales::percent) +
  labs(title = "Primary Mortgage Market Survey (PMMS)",
       subtitle = "U.S. Weekly Averages since April 1971",
       caption = "Source: Freddie Mac",
       x = "", y = "", color = "") +
  theme_bw() +
  theme(text = element_text(family = "serif"),
        plot.title = element_text(hjust = 0.5),
        plot.subtitle = element_text(hjust = 0.5),
        legend.position = c(.88,.93),
        legend.background=element_blank())

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

Information

Captions

Freddie Mac Primary Mortgage Market Survey (PMMS)

Items portrayed in this file

depicts

1 April 2024

image/svg+xml

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current 17:57, 5 April 2024 Thumbnail for version as of 17:57, 5 April 2024675 × 506 (238 KB)Semper ExploroCorrected image
16:09, 1 April 2024 Thumbnail for version as of 16:09, 1 April 2024720 × 540 (82 KB)Semper ExploroUploaded own work with UploadWizard
The following pages on the English Wikipedia use this file (pages on other projects are not listed):

Metadata